Re: More about "CREATE TABLE" from inside a function/trigger...
В списке pgsql-hackers по дате отправления:
| От | 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...
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера