Re: using vars in ddl in procedure call

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: using vars in ddl in procedure call
Дата
Msg-id 10405.1346253486@sss.pgh.pa.us
обсуждение исходный текст
Ответ на using vars in ddl in procedure call  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Ответы Re: using vars in ddl in procedure call  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
"Gauthier, Dave" <dave.gauthier@intel.com> writes:
> Trying (failing) a test to see if I can run ddl in a procedure where elements of the ddl are vars.  Consider...

You'll need to construct the command as a string value and then run it
with EXECUTE.  Beware of quoting issues (quote_ident and quote_literal
are your friends).

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: salah jubeh
Дата:
Сообщение: Re: using vars in ddl in procedure call
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [postgis-users] pg_dump -s should use add_geometrycolumn(...)