Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 04DE0633623 for ; Wed, 6 May 2009 16:27:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 03721-07 for ; Wed, 6 May 2009 16:27:48 -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 B8EB963361F for ; Wed, 6 May 2009 16:27: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 n46JZ4nh018095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 6 May 2009 12:35:06 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CA5BED4179; Wed, 6 May 2009 15:27:28 -0400 (CLT) Date: Wed, 6 May 2009 15:27:28 -0400 From: Alvaro Herrera To: Robert =?iso-8859-1?Q?Gravsj=F6?= Cc: liuzg4 liuzg4 , pgsql-docs@postgresql.org Subject: Re: [GENERAL] how to select temp table Message-ID: <20090506192728.GL4476@alvh.no-ip.org> References: <4A01CFE8.9010005@blogg.se> <20090506192354.GK4476@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090506192354.GK4476@alvh.no-ip.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 12:35:07 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.257 tagged_above=0 required=5 tests=AWL=0.257 X-Spam-Level: X-Archive-Number: 200905/1 X-Sequence-Number: 5162 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. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.