Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 206F563295E for ; Sun, 25 Apr 2010 18:30:10 -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 99193-07 for ; Sun, 25 Apr 2010 21:29:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id 810046321C5 for ; Sun, 25 Apr 2010 18:29:59 -0300 (ADT) Received: from adsl-63-195-55-98.dsl.snfc21.pacbell.net ([63.195.55.98] helo=[192.168.47.103]) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1O69Oj-0001P1-KL for pgsql-hackers@postgresql.org; Sun, 25 Apr 2010 14:29:56 -0700 Message-ID: <4BD4B44B.6030406@agliodbs.com> Date: Sun, 25 Apr 2010 14:29:47 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9pre) Gecko/20100217 Shredder/3.0.3pre MIME-Version: 1.0 To: pgsql-hackers@postgresql.org Subject: Re: global temporary tables References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.564 tagged_above=-10 required=5 tests=AWL=-1.364, BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201004/1175 X-Sequence-Number: 161287 Robert, > (1). What I *think* it is supposed to mean is that the table is a > permanent object which is "globally" visible - that is, it's part of > some non-temp schema like public or $user and it's column definitions > etc. are visible to all backends - and it's not automatically removed > on commit, backend exit, etc. - but the *contents* of the table are > temporary and backend-local, so that each new backend initially sees > it as empty and can then insert, update, and delete data independently > of what any other backend does. While closer to the standard, the above definition is a lot less useful than what I believe a lot of people want, which is a table which is globally visible, but has no durability; that is, it does not get WAL-logged or recovered on restart. Certainly this latter definition would be far more useful to support materialized views. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com