Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7F3FA119C295 for ; Thu, 8 Mar 2012 18:41:38 -0400 (AST) Received: from acidenitrix.villemain.org ([91.121.90.165]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S5m1d-0005AQ-UC for pgsql-bugs@postgresql.org; Thu, 08 Mar 2012 22:41:37 +0000 Received: from 89-158-241-83.rev.dartybox.com ([89.158.241.83] helo=DimIMac.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1S5m1R-0007Fd-5t; Thu, 08 Mar 2012 23:41:21 +0100 Received: by DimIMac.local (Postfix, from userid 501) id 9AC7A3CA3237; Thu, 8 Mar 2012 23:41:14 +0100 (CET) From: Dimitri Fontaine To: Tom Lane Cc: Dimitri Fontaine , Phil Sorber , pgsql-bugs@postgresql.org Subject: Re: Extension tracking temp table and causing update failure Organization: 2ndQuadrant References: <21101.1331071837@sss.pgh.pa.us> <87linc93iq.fsf@hi-media-techno.com> <8167.1331135949@sss.pgh.pa.us> <15629.1331145998@sss.pgh.pa.us> <13187.1331227161@sss.pgh.pa.us> <925.1331235861@sss.pgh.pa.us> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Thu, 08 Mar 2012 23:41:14 +0100 In-Reply-To: <925.1331235861@sss.pgh.pa.us> (Tom Lane's message of "Thu, 08 Mar 2012 14:44:21 -0500") Message-ID: User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.94 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/72 X-Sequence-Number: 32633 Tom Lane writes: > Actually, after I got done hacking the temp-schema case, I realized that > preventing temp tables from becoming extension members isn't so ugly as > I first thought; in fact, it's pretty much a one-liner, and much cleaner > than hacking ON COMMIT DROP. PFA a patch that fixes both of the > temp-table issues. Awesome. I'm surprised we have so few callers of NamespaceCreate, but that makes sense indeed. Nice localized patch, and I know why I want to upgrade to 9.1.4 sometime later=C2=A0:) (extensions with PL functions that you need to drop when the API changes, you need to alter extension drop function in the script before 9.1.4). Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support