Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2K0HwN56092 for ; Mon, 19 Mar 2001 19:17:58 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id TAA13524; Mon, 19 Mar 2001 19:17:36 -0500 (EST) From: Bruce Momjian Message-Id: <200103200017.TAA13524@candle.pha.pa.us> Subject: Re: [GENERAL] Re: temp table creation In-Reply-To: <2395.982251358@sss.pgh.pa.us> "from Tom Lane at Feb 15, 2001 10:35:58 am" To: Tom Lane Date: Mon, 19 Mar 2001 19:17:36 -0500 (EST) CC: Alfonso Peniche , PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200103/99 X-Sequence-Number: 533 This should be in the docs somewhere. Is it? > Alfonso Peniche writes: > > In that case, how could I create a temporary table from plpgsql? > > CREATE [TEMP] TABLE foo AS SELECT ... > > This is equivalent to SELECT INTO [TEMP] foo in regular SQL, and > does not change meaning in plpgsql. > > regards, tom lane > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026