Re: newbie pl/pgsql question on trigger function error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: newbie pl/pgsql question on trigger function error
Дата
Msg-id 14733.1076426047@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: newbie pl/pgsql question on trigger function error  (Mark Gibson <gibsonm@cromwell.co.uk>)
Список pgsql-general
Mark Gibson <gibsonm@cromwell.co.uk> writes:
> Try this:

> my_query := ''create table '' || quote_ident(NEW.tablename)
>          || '' ( arg1 '' || quote_ident(NEW.arg1) || '');'';

quote_ident() seems appropriate for the table name, but you might want
to leave it off the type name.  For instance, if the argument is
'varchar(20)' then quote_ident would mess things up.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: number of rows in a cursor
Следующее
От: Tom Lane
Дата:
Сообщение: Re: IP adrss and networks in Postgresql