Re: TupleDesc and HeapTuple

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: TupleDesc and HeapTuple
Дата
Msg-id AANLkTinbaLwIPZn6hxjUDe3BBxSNMpmL3I6hSyhCsTds@mail.gmail.com
обсуждение исходный текст
Ответ на Re: TupleDesc and HeapTuple  (Luca Ferrari <fluca1978@infinito.it>)
Список pgsql-general
2010/7/7 Luca Ferrari <fluca1978@infinito.it>:
> On Tuesday, July 06, 2010 09:58:45 pm Alvaro Herrera's cat walking on the
> keyboard wrote:
>> You're supposed to know which relation you got the HeapTuple from, so
>> you get the TupleDesc from there.
>
> True, but if I want to pass the heaptuple around I must pass also its tuple
> desc, or the receiver will not know how the tuple is composed. Maybe this case
> never happens/happened.
>

In pg core - receiver have to have actual datatype everywhere - so if
you write a some general function, then you put a Datum value -
universal PostgreSQL datatype and you have to put a datatype
identification - Oid, typmod or TupleDesc.

Pavel

> Luca
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

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

Предыдущее
От: Martin Below
Дата:
Сообщение: optimizer choosing the wrong index
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: optimizer choosing the wrong index