Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CA8BEB5DC24 for ; Wed, 21 Sep 2011 12:35:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 89841-06 for ; Wed, 21 Sep 2011 15:35:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 4B220B5DC1E for ; Wed, 21 Sep 2011 12:35:41 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8LFZcfu023671; Wed, 21 Sep 2011 11:35:38 -0400 (EDT) To: Robert Haas cc: Alvaro Herrera , Abel Abraham Camarillo Ojeda , Pg Bugs Subject: Re: BUG #6205: ERROR: temporary tables cannot specify a schema name In-reply-to: References: <201109142133.p8ELXXkh073452@wwwmaster.postgresql.org> <1316036899-sup-8762@alvh.no-ip.org> <17052.1316059526@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Wed, 21 Sep 2011 10:55:19 -0400" Date: Wed, 21 Sep 2011 11:35:38 -0400 Message-ID: <23670.1316619338@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/137 X-Sequence-Number: 31154 Robert Haas writes: > On Sun, Sep 18, 2011 at 5:10 PM, Robert Haas wrote: >> On Thu, Sep 15, 2011 at 12:05 AM, Tom Lane wrote: >>> In that case I'm betting Robert broke it somewhere in the unlogged-table >>> changes. >> Yeah, looks like it.  Will investigate. > I committed a localized fix for this. Basically, it now double-checks > that the schema name isn't the one that would have been forced by the > temp-ness, and doesn't throw an error if they match. Keeping in mind that this worked before ... did you take the approach of seeing exactly why it worked before, and why your changes broke it? The patch you committed looked like it was introducing the functionality from scratch, which should not have been the case. regards, tom lane