hicham_rahj
09/03/2021, 2:44 PMedgar_ramirez_mondragon
09/03/2021, 3:00 PMtap_catfacts
doesn't exist in the postgres db. Most target-postgres
variants support some way of creating it for you based on a setting. What variant are you using?hicham_rahj
09/03/2021, 3:02 PMhicham_rahj
09/03/2021, 3:05 PMedgar_ramirez_mondragon
09/03/2021, 3:12 PMdatamill-co
variant supports a before_run_sql
setting that runs arbitrary SQL before it starts loading so you can leverage it to create the schema:
loaders:
- name: target-postgres
variant: datamill-co
pip_url: singer-target-postgres
config:
before_run_sql: "CREATE SCHEMA IF NOT EXISTS ${MELTANO_EXTRACT__LOAD_SCHEMA};" # <--- THIS
edgar_ramirez_mondragon
09/03/2021, 3:13 PMload_schema
extra here: https://www.meltano.com/docs/plugins.html#load-schema-extrahicham_rahj
09/06/2021, 7:11 AM