pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14228: replication slot catalog_xmin not cleared on slot reuse
Date: Wed, 06 Jul 2016 04:56:31 +0100
Message-ID: <87vb0ja0b5.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAB7nPqQ6WWipoN3A3g-uWQM=JJcGWSKA8Bw-q3+jXOiuNd-iRw@mail.gmail.com>
References: <20160705173502.1398.70934@wrigleys.postgresql.org>
	<CAB7nPqQ6WWipoN3A3g-uWQM=JJcGWSKA8Bw-q3+jXOiuNd-iRw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

>>>>> "Michael" == Michael Paquier <michael.paquier@gmail.com> writes:

 >> When creating a physical replication slot, the catalog_xmin field of
 >> the new slot is not initialized. If the slot storage had previously
 >> been used for a logical slot, the old catalog_xmin will remain in
 >> place and interfere with vacuum.

 Michael> Good catch! The same applies to confirmed_flush_lsn, which is
 Michael> used only by logical decoding and should remain as NULL for
 Michael> physical slots.  So I propose the patch attached to address
 Michael> both problems.

What about slot->effective_catalog_xmin ?

-- 
Andrew (irc:RhodiumToad)


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (13+ messages)  latest in thread

Message-ID: <87vb0ja0b5.fsf@news-spur.riddles.org.uk>
Permalink:  ../87vb0ja0b5.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87vb0ja0b5.fsf@news-spur.riddles.org.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, michael.paquier@gmail.com
  Subject: Re: BUG #14228: replication slot catalog_xmin not cleared on slot reuse
  In-Reply-To: <87vb0ja0b5.fsf@news-spur.riddles.org.uk>
  References: <20160705173502.1398.70934@wrigleys.postgresql.org> <CAB7nPqQ6WWipoN3A3g-uWQM=JJcGWSKA8Bw-q3+jXOiuNd-iRw@mail.gmail.com> <87vb0ja0b5.fsf@news-spur.riddles.org.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox