2010/7/7 Luca Ferrari <fluca1978@xxxxxxxxxxx>: > 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@xxxxxxxxxxxxxx) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general > -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general