pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: phb07 <phb07@apra.asso.fr>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14434: Drop a table with a serial in an extension
Date: Sat, 26 Nov 2016 13:36:29 -0500
Message-ID: <14093.1480185389@sss.pgh.pa.us> (raw)
In-Reply-To: <e8067935-5649-8215-42e5-fe306c92fb80@apra.asso.fr>
References: <20161125151448.6529.33039@wrigleys.postgresql.org>
	<4135.1480121998@sss.pgh.pa.us>
	<e8067935-5649-8215-42e5-fe306c92fb80@apra.asso.fr>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

phb07 <phb07@apra.asso.fr> writes:
> Le 26/11/2016 à 01:59, Tom Lane a écrit :
>> Don't see why that's a "workaround".  You added the extension membership
>> for the sequence explicitly, why wouldn't you expect to need to drop it
>> explicitly?  Seems to me the system is behaving properly.

> Because depending on the way a table has been included in the extension 
> (either directly created inside the extension or first created outside 
> and then linked to the extension) the procedure to drop it some versions 
> later would be different.

Well, no it wouldn't be, but nonetheless on closer study I think you're
right that this is a bug.  There is code in there that intends to make it
unnecessary to issue "ALTER EXTENSION DROP member" when an extension
update script drops a member object; it should be sufficient to just
drop the object.  It was failing to fire in this case because the drop
was indirect, but it should work anyway.

I've applied a patch for that.  Thanks for the report!

			regards, tom lane


-- 
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 (5+ messages)  latest in thread

Message-ID: <14093.1480185389@sss.pgh.pa.us>
Permalink:  ../14093.1480185389@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14093.1480185389@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, phb07@apra.asso.fr
  Subject: Re: BUG #14434: Drop a table with a serial in an extension
  In-Reply-To: <14093.1480185389@sss.pgh.pa.us>
  References: <20161125151448.6529.33039@wrigleys.postgresql.org> <4135.1480121998@sss.pgh.pa.us> <e8067935-5649-8215-42e5-fe306c92fb80@apra.asso.fr> <14093.1480185389@sss.pgh.pa.us>

* 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