Re: logical replication - possible remaining problem

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Erik Rijkers <er(at)xs4all(dot)nl>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: logical replication - possible remaining problem
Date: 2017-06-07 21:18:03
Message-ID: 20170607211803.i6jwgutcm3nahzla@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Erik Rijkers wrote:

> Now, looking at the script again I am thinking that it would be reasonable
> to expect that after issuing
> delete from pg_subscription;
>
> the other 2 tables are /also/ cleaned, automatically, as a consequence. (Is
> this reasonable? this is really the main question of this email).

I don't think it's reasonable to expect that the system recovers
automatically from what amounts to catalog corruption. You should be
using the DDL that removes subscriptions instead.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2017-06-07 21:19:08 Re: PG10 transition tables, wCTEs and multiple operations on the same table
Previous Message Regina Obe 2017-06-07 21:07:10 Re: PostgreSQL 10 changes in exclusion constraints - did something change? CASE WHEN behavior oddity