MeltanoLabs / tap-postgres

Singer Tap for PostgreSQL
https://hub.meltano.com/extractors/tap-postgres--meltanolabs/
Other
21 stars 27 forks source link

feat: Custom replication slot name #540

Open edgarrmondragon opened 2 weeks ago

edgarrmondragon commented 2 weeks ago

Hi everyone. I'm using tap-postgres with LOG_BASED replication method. I've successfully setup the logical replication and now able to capture insert, update, and deletes on my database.

I'm running into an issue that my replication slot cannot be used by parallel extractions from the database. Is there a way to set a different replication slot name for each extractor other than tappostgres?

This should be as easy as adding new setting to tap_postgres/tap.py and passing it to

https://github.com/MeltanoLabs/tap-postgres/blob/e6dd19cd9946feb61ec1d41e0c694bcdab1c9cf2/tap_postgres/client.py#L343-L353

Slack Thread: https://meltano.slack.com/archives/C069CQNHDNF/p1731396392068079

RobyBen commented 3 days ago

I made pull request. Check pls