Re: logical replication syntax (was DROP SUBSCRIPTION, query cancellations and slot handling)
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Petr Jelinek <petr.jelinek@2ndquadrant.com>, Tom Lane <tgl@sss.pgh.pa.us>, Michael Paquier <michael.paquier@gmail.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2017-05-02T16:00:06Z
Lists: pgsql-hackers
On Tue, May 2, 2017 at 11:49 AM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote: > Petr Jelinek wrote: >> So the only way to fulfill the requirement you stated is to just not try >> to drop the slot, ever, on DROP SUBSCRIPTION. That makes the default >> behavior leave resources on upstream that will eventually cause that >> server to stop unless user notices before. I think we better invent >> something that limits how much inactive slots can hold back WAL and >> catalog_xmin in this release as well then. > > I don't understand why isn't the default behavior to unconditionally > drop the slot. Why do we ever want the slot to be kept? What if the remote server doesn't exist any more? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Remove the NODROP SLOT option from DROP SUBSCRIPTION
- 013c1178fd0a 10.0 landed