Query regarding replication slots - Mailing list pgsql-hackers

From RKN Sai Krishna
Subject Query regarding replication slots
Date
Msg-id CAMVpbFMt=jb+Krk2AWUh3+YQYOSEfTD0D+vhhNGK7f2Vz4_edA@mail.gmail.com
Whole thread Raw
Responses Re: Query regarding replication slots
List pgsql-hackers
Hi All,

I have a very basic question related to replication slots. Why should
the master/primary server maintain the replication slot info like lsn
corresponding to each standby server etc. Instead, why can't each
standby server send the lsn that it needs, and master/primary server
maintain the minimum lsn across all of the standby servers so that the
information could be used for cleanup/removal of WAL segments?

The minimum lsn could as well be streamed to all of the standby
servers while streaming the WAL records, so that the cleanup on the
standby server as well happens as per the minimum lsn. Also, even if
the primary server crashes, any standby server becoming the master is
well aware of the minimum lsn and the WAL records required for all of
the remaining standby servers are intact.

Thanks,
RKN



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: ICU for global collation
Next
From: Alvaro Herrera
Date:
Subject: Re: a misbehavior of partition row movement (?)