Ratas
05/28/2025, 8:05 AMfull_table
syncs while declared as log_based
. It seems that the S3 backend state is always initiated to the initial, empty, state.
completed
singer_state
bookmarks
public-table_1 {}
public-table_2 {}
public-table_3 {}
public-table_4 {}
partial {}
At the end of the data ingestion for a single table, {"starting_replication_value": null}
gets added to the table, but then again overwritten as STATE
message by the connector. The source DB has a replication slot, that is (obviously) not consumed and has a publication, which does not get referenced by tap-postgres as per docs there is no way to set it.
Is there something I am missing with the setup here?Ratas
05/28/2025, 9:20 AMwal2json
replication slot, with a pgoutput
slot the error I get is this:
psycopg2.errors.InternalError_: unrecognized pgoutput option: format-version
CONTEXT: slot "replication_slot_name", output plugin "pgoutput", in the startup callback
Postgres DB is running on 15.12Ratas
05/28/2025, 9:44 AMoptions={
"format-version": 2,
"include-transaction": False,
"add-tables": self.fully_qualified_name,
},
Is there a way to change it via config in YML?Edgar Ramírez (Arch.dev)
05/28/2025, 4:31 PMformat-version
?Edgar Ramírez (Arch.dev)
05/28/2025, 6:21 PMmeltano.yml
look like?Ratas
05/29/2025, 6:42 AMformat-version
option, I will try to see if the others "fit" as wellRatas
05/29/2025, 6:45 AMmeltano.yml
looks like this:
version: 1
default_environment: dev
project_id: {some_id}
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres>
metadata:
"*":
replication_method: LOG_BASED
replication_key: _sdc_lsn
select:
- public-table1.column1
- public-table1.column2
- public-table1.column3
- public-table1.column4
- public-table1.column5
- public-table1.column6
- public-taböe1.column7
- public-table1.column8
- public-table1.column9
loaders:
- name: target-snowflake
variant: meltanolabs
pip_url: meltanolabs-target-snowflake
utilities:
- name: cron
variant: meltano
pip_url: git+<https://github.com/meltano/cron-ext.git>
jobs:
- name: test_job
tasks:
- tap-postgres target-snowflake
schedules:
- name: test_job_schedule
interval: '*/15 * * * *'
job: test_job