pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: dnsl48@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15631: Generated as identity field in a temporary table with on commit drop corrupts system catalogs
Date: Fri, 8 Mar 2019 12:00:40 +0100
Message-ID: <12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com> (raw)
In-Reply-To: <20190213044104.GE5746@paquier.xyz>
References: <15631-188663b383e1e697@postgresql.org>
	<24188.1549917188@sss.pgh.pa.us>
	<043b0c10-5a27-b9ff-7451-b8a2ca9327b1@2ndquadrant.com>
	<31358.1549981670@sss.pgh.pa.us>
	<20190213023817.GD5746@paquier.xyz>
	<20190213044104.GE5746@paquier.xyz>

On 2019-02-13 05:41, Michael Paquier wrote:
> The patch attached solves the problem, for consistency I would suggest
> doing the CCI even for auto dependencies.

OK, let's go with this.  Attached is your patch with my comment wording.
 Also a test case, but I don't suggest committing that, it's a bit too
weird.  (The effect of the test is to cause catalog corruption that will
cause a later test to fail.)  We can leave it in the archive for posterity.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

  v2-0001-Fix-potential-catalog-corruption-with-temporary-i.patch (text/plain, 0B) download

view thread (23+ messages)  latest in thread

Message-ID: <12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com>
Permalink:  ../12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com/
Also on:    postgresql.org/message-id/12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com

 ·  · 

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: peter.eisentraut@2ndquadrant.com, michael@paquier.xyz, tgl@sss.pgh.pa.us, dnsl48@gmail.com
  Subject: Re: BUG #15631: Generated as identity field in a temporary table with on commit drop corrupts system catalogs
  In-Reply-To: <12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com>
  References: <15631-188663b383e1e697@postgresql.org> <24188.1549917188@sss.pgh.pa.us> <043b0c10-5a27-b9ff-7451-b8a2ca9327b1@2ndquadrant.com> <31358.1549981670@sss.pgh.pa.us> <20190213023817.GD5746@paquier.xyz> <20190213044104.GE5746@paquier.xyz> <12a993ea-1ba5-96d7-a0b5-362579fdadc1@2ndquadrant.com>

* 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