Re: More about "CREATE TABLE" from inside a function/trigger... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: More about "CREATE TABLE" from inside a function/trigger...
Date
Msg-id 584.967699435@sss.pgh.pa.us
Whole thread Raw
In response to More about "CREATE TABLE" from inside a function/trigger...  ("Dominic J. Eidson" <sauron@the-infinite.org>)
Responses Re: More about "CREATE TABLE" from inside a function/trigger...
List pgsql-hackers
I believe you could do CREATE TABLE from inside a pltcl or plperl
function today.  plpgsql won't work because it tries to cache query
plans for repeated execution --- which essentially means that you
can only substitute parameters for data values, not for table names
or field names or other structural aspects of a query.  But the other
two just treat queries as dynamically-generated strings, so you can
do anything you want in those languages.  (At a performance price,
of course: no caching.  There ain't no such thing as a free lunch.)
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Patch for TNS services
Next
From: Thomas Lockhart
Date:
Subject: Re: Patch for TNS services