pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hlefebvre <hlefebvre@lexbase.net>
To: Andreas Tille <tillea@rki.de>
Cc: PostgreSQL SQL <pgsql-sql@hub.org>
Subject: Re: Create table in functions
Date: Thu, 24 Aug 2000 11:36:01 +0200
Message-ID: <39A4EC81.BF9ECFC5@lexbase.net> (raw)
References: <Pine.LNX.4.21.0008231647290.22247-100000@wr-linux02.rki.de>

Andreas Tille wrote:
> What does this mean?  The ERROR is caused by the Create Table statement
> (when I removed it from my complex function it worked well).
> So why doesn't this work and what copy function fails here??

Maybe you can create your table using a select into statement :

something like :
SELECT int4(1) as Num INTO Temp_NumTable WHERE 1=2;

Should create your table without CREATE statement.



view thread (10+ messages)  latest in thread

Message-ID: <39A4EC81.BF9ECFC5@lexbase.net>
Permalink:  ../39A4EC81.BF9ECFC5@lexbase.net/
Also on:    postgresql.org/message-id/39A4EC81.BF9ECFC5@lexbase.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: hlefebvre@lexbase.net, tillea@rki.de, pgsql-sql@hub.org
  Subject: Re: Create table in functions
  In-Reply-To: <39A4EC81.BF9ECFC5@lexbase.net>
  References: <Pine.LNX.4.21.0008231647290.22247-100000@wr-linux02.rki.de> <39A4EC81.BF9ECFC5@lexbase.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox