pl/pgsql create table - Mailing list pgsql-general

From Masse Jacques
Subject pl/pgsql create table
Date
Msg-id 0B87317EA62BD211A02A00A0C9DFB7EC9B5ECE@hermes.bordeaux.cemagref.fr
Whole thread Raw
Responses Re: pl/pgsql create table  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
I wonder when doing in a pg/pgsql function somewhat like

    CREATE TABLE tmp as select foo;

I have an error when tmp don't exist ( "table tmp don't exist" ...)

and all is working well when there is a table tmp (no matter the structure
of this table, the new table has a structure according to foo)

Id with

    DROP table tmp_site;
    CREATE table tmp_site as select foo;

Cheers
 __________________________________________
Jacques Massé
Tel. 33 (0)5 57 89 08 11 - Fax 33 (0)5 57 89 08 01



pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Measurement of databases & indexes
Next
From: Bruce Momjian
Date:
Subject: Re: pl/pgsql create table