Re: pg_replslotdata - a tool for displaying replication slot information

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_replslotdata - a tool for displaying replication slot information
Date: 2021-11-30 14:14:04
Message-ID: f3f6b5f6-df1d-d604-df8a-6ad11ce67f4d@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 23.11.21 06:09, Bharath Rupireddy wrote:
> The replication slots data is stored in binary format on the disk under
> the pg_replslot/<<slot_name>> directory which isn't human readable. If
> the server is crashed/down (for whatever reasons) and unable to come up,
> currently there's no way for the user/admin/developer to know what were
> all the replication slots available at the time of server crash/down to
> figure out what's the restart lsn, xid, two phase info or types of slots
> etc.

What do you need that for? You can't do anything with a replication
slot while the server is down.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2021-11-30 14:20:42 Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file
Previous Message Masahiko Sawada 2021-11-30 13:38:40 Re: Skipping logical replication transactions on subscriber side