Re: No such file or directory in pg_replslot - Mailing list pgsql-hackers

From Adrien NAYRAT
Subject Re: No such file or directory in pg_replslot
Date
Msg-id a2578862-481a-0906-7af5-b6cbee7823f3@anayrat.info
Whole thread Raw
In response to Re: No such file or directory in pg_replslot  (Jeremy Finzel <finzelj@gmail.com>)
List pgsql-hackers
On 12/8/18 8:21 PM, Jeremy Finzel wrote:
> There are 2.1 million files in pg_replslot which I don't think is 
> normal?  Any ideas as to where I should be looking or what could cause this?

Postgres spills changes on disk when you have a big transaction: 
https://blog.anayrat.info/en/2018/03/10/logical-replication-internals/

You can monitor it with check_pgactivity's replication_slots service:
https://github.com/OPMDG/check_pgactivity/blob/master/check_pgactivity#L5664

(You have to use master version, this feature has not been released yet)


pgsql-hackers by date:

Previous
From: Michael Banck
Date:
Subject: Re: Record last password change
Next
From: maxzor
Date:
Subject: Patch for "CREATE TABLE ... (LIKE ... INCLUDING COMMENTS)"