Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6FD2E632429 for ; Wed, 6 May 2009 17:58:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 39765-06 for ; Wed, 6 May 2009 17:58:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id D2ADF62DBDE for ; Wed, 6 May 2009 17:58:51 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-118-67.bk8-dsl.surnet.cl [200.126.118.67]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id n46L6EqF024384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 6 May 2009 14:06:17 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id DFE49D4179; Wed, 6 May 2009 16:58:38 -0400 (CLT) Date: Wed, 6 May 2009 16:58:38 -0400 From: Alvaro Herrera To: David Fetter Cc: Robert =?iso-8859-1?Q?Gravsj=F6?= , liuzg4 liuzg4 , pgsql-docs@postgresql.org Subject: Re: [GENERAL] how to select temp table Message-ID: <20090506205838.GN4476@alvh.no-ip.org> References: <4A01CFE8.9010005@blogg.se> <20090506192354.GK4476@alvh.no-ip.org> <20090506192728.GL4476@alvh.no-ip.org> <20090506194554.GY20491@fetter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090506194554.GY20491@fetter.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Wed, 06 May 2009 14:06:17 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/5 X-Sequence-Number: 5166 David Fetter escribió: > On Wed, May 06, 2009 at 03:27:28PM -0400, Alvaro Herrera wrote: > > Alvaro Herrera escribió: > > > > > Note that you can refer to the temp table like this: > > > > > > select * from pg_temp.testtable; > > > > BTW I found no mention of pg_temp in the doc page here: > > http://www.postgresql.org/docs/current/static/ddl-schemas.html > > > > Apparently the only mention of pg_temp is in the CREATE FUNCTION page. > > That's probably not a good omission. Any ideas as to where further > mentions should go? I think mentioning it in the page I link to above would be good. I can't think of any further places on which it should be mentioned. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support