Home > database >  Postgresql12 flow replication configuration replication slot does not work?
Postgresql12 flow replication configuration replication slot does not work?

Time:02-10

Ubuntu20.04 + postgresql20
1. The main library configuration:
Wal_level=up
Max_wal_senders=10
Max_replication_slots=10
2. The main library to create a slot:
Postgres=# SELECT * FROM pg_create_physical_replication_slot (' slot_for_db2_on_db1 ');
Slot_name | LSN
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - + -- -- -- -- --
Slot_for_db2_on_db1 |
(row 1)
3. Question:
In the case of libraries under the condition of not started, when I continue to insert data in the main library, found pg_wal incredibly automatically clean up the log file directory, in my understanding should not be clear, is I understand there is a problem, or where the configuration is wrong? Please the great god give directions, thank you

















  • Related