I'm new in PostgreSQL. I'm trying to create a logical replication of 2 databases that are in the same localhost and port (I don't know if that's part of the problem that I'm having). The point is, that I create the publication with no problem, but, the moment that I create the subscription, the replication slot that must be created in the master won't create. I have the wal_level = logical
, but I don't know if I need another configuration in the postgres.conf
or pg_hba
Another detail is that I can't create the subscription by code, Postgres just simply doesn't respond, like it got stuck right there, doesn't show any error message or confirmation. The only way I can create the subscription is in pgAdmin 4, but here occurs the error that the replication slot it doesn't create.
Any suggestion of help is accepted. And btw, sorry if my english is kind of bad, I hope I have explained myself.