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 f2KGloN33679 for ; Tue, 20 Mar 2001 11:47:50 -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 LAA00999; Tue, 20 Mar 2001 11:47:41 -0500 (EST) From: Bruce Momjian Message-Id: <200103201647.LAA00999@candle.pha.pa.us> Subject: Re: [GENERAL] Re: temp table creation In-Reply-To: <3AB78514.FF3BB188@iteso.mx> "from Alfonso Peniche at Mar 20, 2001 10:28:04 am" To: Alfonso Peniche Date: Tue, 20 Mar 2001 11:47:41 -0500 (EST) CC: Tom Lane , 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/106 X-Sequence-Number: 540 > Yes Bruce, IT IS In the new documentation (7.1 release), but not in previous > versions. If you want me to be specific, it's in the reference manual under > SQL Commands - CREATE TABLE AS..... > > Cheers Great. Seemed like a nifty trick to get around a parser problem. > > Bruce Momjian wrote: > > > 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 > > -- 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