Re: Convert Datum* to char* - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Convert Datum* to char*
Date
Msg-id 4999.1389026041@sss.pgh.pa.us
Whole thread Raw
In response to Re: Convert Datum* to char*  (Masterprojekt Naumann1 <mpws2013n1@gmail.com>)
Responses Re: Convert Datum* to char*  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Masterprojekt Naumann1 <mpws2013n1@gmail.com> writes:
> Nevertheless, slot->tts_nvalid is always 0. I hope that there is no other
> problem.

You should not be touching the tts_values/tts_isnull arrays without having
first called slot_getsomeattrs or slot_getallattrs.

See comments in src/include/executor/tuptable.h for some documentation.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: generic pseudotype IO functions?
Next
From: Andres Freund
Date:
Subject: Re: generic pseudotype IO functions?