Re: Record Types Structure in PL/pgSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Record Types Structure in PL/pgSQL
Дата
Msg-id 22947.1181311865@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Record Types Structure in PL/pgSQL  ("Diego Sanchez R." <dmsanchezr@gmail.com>)
Ответы Re: Record Types Structure in PL/pgSQL  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-general
"Diego Sanchez R." <dmsanchezr@gmail.com> writes:
> Is there any way of determining the actual structure of a record variable?

Not in plpgsql; even if the info were exposed, you couldn't do anything
very useful because that language is strongly typed.

In some of the other PLs you could do it --- eg, in plperl the field
names are keys of a hash.  Or as a last resort there's always C.

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: setting login database
Следующее
От: Andrew Edson
Дата:
Сообщение: Disappearing table - suggestions on possible causes appreciated.