Dissecting Tuples in C - Mailing list pgsql-interfaces

From Clay Luther
Subject Dissecting Tuples in C
Date
Msg-id 1056660353.22881.28.camel@gkar
Whole thread Raw
Responses Re: Dissecting Tuples in C
List pgsql-interfaces
I am trying to get up to speed writing C triggers and I have a question about the relation between HeapTuples and
othertuple-related types, like TupleTableSlots, and the routines and macros used to manipulate them. I am reading and
re-readingthe online docs, but still have some broad questions.<br /><br /> For example, suppose I just wanted a
triggerto iterate through the HeapTuple pointed at by the tirgger data tg_trigtuple, printing out the column names,
types,and values (lets say, only ints and strings for simplicity). How would I do this?<br /><br /> A pointer to a good
documentwould be just as good as a detailed answer.<br /><br /> Thanks!<br /><br /><table cellpadding="0"
cellspacing="0"width="100%"><tr><td><pre>-- 
 
Clay
claycle@cisco.com</pre></td></tr></table>

pgsql-interfaces by date:

Previous
From: Nicolás Alvarez
Date:
Subject: libpq++ on sco openserver
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: Dissecting Tuples in C