Re: Pgsql problem

Поиск
Список
Период
Сортировка
От Dmitriy Igrishin
Тема Re: Pgsql problem
Дата
Msg-id CAAfz9KNdumBAN6zY4pBiDFrocqrfEzXueDqiNffSwncb4TMrHw@mail.gmail.com
обсуждение исходный текст
Ответ на Pgsql problem  (pasman pasmański <pasman.p@gmail.com>)
Список pgsql-general
Hey pasman,

2012/1/12 pasman pasmański <pasman.p@gmail.com>
Hi.

I write function in pgsql. This function needs
to execute other functions by name.
I do it using loop:

declare r record;
begin
for r in execute 'select ' || $1 || '()'
 loop
 end loop;

But I can't convert a record to array of text.
How to do it ?
Presently, hstore is a most flexible solution in such cases.
See http://www.postgresql.org/docs/9.1/static/hstore.html

--
// Dmitriy.


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

Предыдущее
От: pasman pasmański
Дата:
Сообщение: Pgsql problem
Следующее
От: seiliki@so-net.net.tw
Дата:
Сообщение: unnest array of row type