Re: Simple row serialization?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Simple row serialization?
Дата
Msg-id 8905.1201372824@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Simple row serialization?  (Ivan Voras <ivoras@freebsd.org>)
Ответы Re: Simple row serialization?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-hackers
Ivan Voras <ivoras@freebsd.org> writes:
> Andrew Dunstan wrote:
>> Or you could possibly use some of the XML support in 8.3 for serialization.

> I need this for 8.1 :)

There's an even easier way in 8.3: just cast the rowtype to text.

regression=# select row(1,2,false)::text;  row   
---------(1,2,f)
(1 row)

Although this won't work at the SQL level in 8.1, I think you might be
able to accomplish the equivalent within plpgsql by assigning the
rowtype value to a text variable.
        regards, tom lane


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

Предыдущее
От: Ivan Voras
Дата:
Сообщение: Re: Simple row serialization?
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Simple row serialization?