Re: pg_replslotdata - a tool for displaying replication slot information

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Re: pg_replslotdata - a tool for displaying replication slot information
Дата
Msg-id CALj2ACXSkPL0TBGVnaHnAFAbCDOjH-3uCwmj-EQfFRb-kYmUGg@mail.gmail.com
обсуждение исходный текст
Ответ на pg_replslotdata - a tool for displaying replication slot information  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: pg_replslotdata - a tool for displaying replication slot information  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On Tue, Nov 23, 2021 at 10:39 AM Bharath Rupireddy
<bharath.rupireddyforpostgres@gmail.com> wrote:
>
> Hi,
>
> The replication slots data is stored in binary format on the disk under the pg_replslot/<<slot_name>> directory which
isn'thuman readable. If the server is crashed/down (for whatever reasons) and unable to come up, currently there's no
wayfor the user/admin/developer to know what were all the replication slots available at the time of server crash/down
tofigure out what's the restart lsn, xid, two phase info or types of slots etc. 
>
> pg_replslotdata is a tool that interprets the replication slots information and displays it onto the stdout even if
theserver is crashed/down. The design of this tool is similar to other tools available in the core today i.e.
pg_controldata,pg_waldump. 
>
> Attaching initial patch herewith. I will improve it with documentation and other stuff a bit later.
>
> Please see the attached picture for the sample output.
>
> Thoughts?

Attaching the rebased v2 patch.

Regards,
Bharath Rupireddy.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dagfinn Ilmari Mannsåker
Дата:
Сообщение: Re: Windows build warnings
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Rename dead_tuples to dead_items in vacuumlazy.c