Received: from vaccine.rki.de (firewall-user@vaccine.rki.de [193.175.81.250]) by hub.org (8.10.1/8.10.1) with SMTP id e7NEoaN42403 for ; Wed, 23 Aug 2000 10:50:37 -0400 (EDT) Received: by vaccine.rki.de; id QAA24510; Wed, 23 Aug 2000 16:50:32 +0200 Received: from unknown(10.15.130.13) by vaccine.rki.de via smap (V5.5) id xma024502; Wed, 23 Aug 00 16:49:43 +0200 Received: from wr-linux02.rki.de ([10.15.140.59]) by mailnu01.rki.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id QD4NBVTH; Wed, 23 Aug 2000 16:48:07 +0200 Date: Wed, 23 Aug 2000 16:49:31 +0200 (CEST) From: Andreas Tille To: PostgreSQL SQL Subject: Create table in functions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200008/252 Hello, I striped down my function up to a strange thing: web=# create function pHelpTable( ) web-# returns int web-# As ' web'# Begin web'# Create Table Temp_NumTable ( Num int ) ; web'# web'# return 17 ; web'# End; ' web-# language 'plpgsql' ; CREATE web=# web=# select pHelpTable( ); ERROR: copyObject: don't know how to copy 611 web=# 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?? Kind regards Andreas.