ihippik / wal-listener

PostgreSQL WAL listener
Apache License 2.0
307 stars 43 forks source link

Question: works? #28

Closed josejuanmontiel closed 1 month ago

josejuanmontiel commented 7 months ago

Hi! Take my question as newby in this library :) ... i was playing with postgres and nats ... replication works in the slave postgres, but i can`t see logs of the replication in the library ... what i'm missing?

  1. Maybe need to grant roles to replication user to "my_table"?
  2. some extra parameter in https://www.postgresql.org/docs/current/sql-createpublication.html
  3. Did you consider use https://github.com/jackc/pglogrepl ?

I'm going to continue playing with ... later i'll share my insights.

Very interesting library... a go alternative to java debezium (not binding to kafka connect)

josejuanmontiel commented 7 months ago

Take a look... i'm not sure what it's the trick (for me, almost) https://github.com/ihippik/wal-listener/pull/29

ihippik commented 7 months ago

Hey @josejuanmontiel! did you check https://github.com/ihippik/wal-listener/blob/master/docker/docker-compose.yml , is it works for you? I'll try from scratch and if something is not clear, I'll update the documentation About pglogrepl - I was inspired by this library.