On 22/1/19 6:01 μ.μ., Josef Machytka
wrote:
I asked you if you had any cron jobs messing around with your WALs. The WALs in pg_wal dir is PostgreSQL's business to manage, not your scripts. Dont do that. Defining wal_keep_segments to a very large value or using replication slots (as with logical repl) won't help if your crons are deleting the WALs. Now what you have to do : - read up about the basic concepts of pgsql administration : https://www.postgresql.org/docs/11/admin.html - understand how postgresql replication slots work (logical repl is based on those) - understand how WAL archiving works - understand how streaming replication works - understand how logical replication works - understand how the various runtime configuration params act on the number of WALs kept
-- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt |