Re: computed values in plpgsql

Поиск
Список
Период
Сортировка
От Reid Thompson
Тема Re: computed values in plpgsql
Дата
Msg-id 1254158958.26990.1.camel@raker.ateb.com
обсуждение исходный текст
Ответ на Re: computed values in plpgsql  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: computed values in plpgsql  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
On Mon, 2009-09-28 at 12:42 -0400, Merlin Moncure wrote:

> the best way to do this is very version dependent.  the basic trick is
> to use text cast to pass a composite type into the query sting.
>
> one way:
> execute 'insert into foo_something select (' || new::text || '::foo).*';
>
> you can try:
> execute 'insert into foo_something select ($1::foo).*' using new::text;
>
> merlin

thanks,  we're using version 8.3.7.

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Functions returning multiple rowsets
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: computed values in plpgsql