Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKdx2-00019Q-9i for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Jul 2016 03:56:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bKdx1-0005fL-Gj for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Jul 2016 03:56:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bKdwz-0005ey-QE for pgsql-bugs@postgresql.org; Wed, 06 Jul 2016 03:56:37 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bKdww-0001XS-EQ for pgsql-bugs@postgresql.org; Wed, 06 Jul 2016 03:56:37 +0000 Received: from localhost ([127.0.0.1]:56345 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1bKdwt-000Lh0-6h; Wed, 06 Jul 2016 03:56:31 +0000 From: Andrew Gierth To: Michael Paquier Cc: PostgreSQL mailing lists Subject: Re: BUG #14228: replication slot catalog_xmin not cleared on slot reuse In-Reply-To: (Michael Paquier's message of "Wed, 6 Jul 2016 11:08:35 +0900") Message-ID: <87vb0ja0b5.fsf@news-spur.riddles.org.uk> References: <20160705173502.1398.70934@wrigleys.postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Wed, 06 Jul 2016 04:56:31 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org >>>>> "Michael" == Michael Paquier 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