postgres insert assuming values as column does not exist code example
Example: add column if not exists postgresql
ALTER TABLE table_name ADD COLUMN IF NOT EXISTS column_name INTEGER;
ALTER TABLE table_name ADD COLUMN IF NOT EXISTS column_name INTEGER;