Re: More about "CREATE TABLE" from inside a function/trigger...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: More about "CREATE TABLE" from inside a function/trigger...
Дата
Msg-id 584.967699435@sss.pgh.pa.us
обсуждение исходный текст
Ответ на More about "CREATE TABLE" from inside a function/trigger...  ("Dominic J. Eidson" <sauron@the-infinite.org>)
Ответы Re: More about "CREATE TABLE" from inside a function/trigger...  (Jan Wieck <janwieck@Yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Patch for TNS services
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Patch for TNS services