Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id BD2E763235C for ; Sat, 24 Apr 2010 13:11:44 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 99403-03 for ; Sat, 24 Apr 2010 16:11:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 0F56462DBFD for ; Sat, 24 Apr 2010 13:11:33 -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 o3OGBXdA007797; Sat, 24 Apr 2010 12:11:33 -0400 (EDT) To: "Greg Sabino Mullane" cc: pgsql-hackers@postgresql.org Subject: Re: global temporary tables In-reply-to: References: Comments: In-reply-to "Greg Sabino Mullane" message dated "Sat, 24 Apr 2010 16:02:33 -0000" Date: Sat, 24 Apr 2010 12:11:33 -0400 Message-ID: <7796.1272125493@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.106 tagged_above=-10 required=5 tests=AWL=-0.196, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/1115 X-Sequence-Number: 161227 "Greg Sabino Mullane" writes: >> surprised to find my clone unaffected? If it modifies both, how do we >> avoid complete havoc if the original has since been modified (perhaps >> incompatibly, perhaps not) by some other backend doing its own ALTER >> TABLE? > Since this is such a thorny problem, and this is a temporary table, why > not just disallow ALTER completely for the first pass? Usually the way we approach these kinds of problems is that we want to see some plausible outline for how they might be fixed before we move forward with the base feature. IOW, I wouldn't object to not having ALTER in the first release, but if we have no idea how to do ALTER at all I'd be too worried that we were painting ourselves into a corner. Or maybe you can make a case that there's no need to allow ALTER at all, ever. But surely DROP needs to be possible, and that seems to already introduce some of the same issues. regards, tom lane