Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.3/8.11.1) with SMTP id f2L4jMH88610 for ; Tue, 20 Mar 2001 23:45:22 -0500 (EST) (envelope-from pgsql-docs-owner@postgresql.org) Received: from iteso.mx (iteso.mx [148.201.1.4]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2KGSUN30374 for ; Tue, 20 Mar 2001 11:28:30 -0500 (EST) (envelope-from alfonso@iteso.mx) Received: from iteso.mx (alfonso@[148.201.112.30]) by iteso.mx (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id KAA06307; Tue, 20 Mar 2001 10:28:15 -0600 X-Authentication-Warning: iteso.mx: Host alfonso@[148.201.112.30] claimed to be iteso.mx Message-ID: <3AB78514.FF3BB188@iteso.mx> Date: Tue, 20 Mar 2001 10:28:04 -0600 From: Alfonso Peniche Organization: Iteso University X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: Bruce Momjian CC: Tom Lane , PostgreSQL-documentation Subject: Re: [GENERAL] Re: temp table creation References: <200103200017.TAA13524@candle.pha.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200103/110 X-Sequence-Number: 544 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 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