Received: from mail-ob02.one.net.au (mail-ob02.one.net.au [61.12.0.162]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBO3cP600146 for ; Sat, 23 Dec 2000 22:38:25 -0500 (EST) (envelope-from keith@e-magine.com.au) Received: Received: [from darthvader.e-magine.com.au ([203.101.65.232]) by mail-ob02.one.net.au with ESMTP id eBO3bY626881; Sun, 24 Dec 2000 14:37:36 +1100 (EST)] Message-Id: <4.3.2.7.0.20001224143826.0284b160@mail.e-magine.com.au> X-Sender: e-magine@mail.e-magine.com.au X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sun, 24 Dec 2000 14:44:01 +1100 To: Volker Paul , pgsql-sql@postgresql.org From: Keith Wong Subject: Re: Create table doesn't work in plpgsql In-Reply-To: <3A43507A.1EC3BFAA@dohle.com> References: <3A41E0BA.FBEDF52F@dohle.com> <20001221095456.C5037@thune.mrc-home.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200012/265 X-Sequence-Number: 602 I believe a couple of months back... a EXECUTE command was added to plpgsql to allow users to dynamic sql statements. So if you get the current development version you should be able to call EXECUTE CREATE TABLE .... or whatever sql you like. (I think this is still not in 7.03, not sure though) I'm not sure about the exact syntax, but if you look in past threads for "execute" I'm sure you'll find it. Have fun. Merry Xmas. Keith. At 02:00 PM 22/12/2000 +0100, Volker Paul wrote: > > Can this be done using tcl or perl? > >I'll try them and report what I find out. > >V.Paul