pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Clay Luther <claycle@cisco.com>
To: pgsql-interfaces@postgresql.org
Subject: Dissecting Tuples in C
Date: 26 Jun 2003 15:45:53 -0500
Message-ID: <1056660353.22881.28.camel@gkar> (raw)

I am trying to get up to speed writing C triggers and I have a question
about the relation between HeapTuples and other tuple-related types,
like TupleTableSlots, and the routines and macros used to manipulate
them. I am reading and re-reading the online docs, but still have some
broad questions.

For example, suppose I just wanted a trigger to 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?

A pointer to a good document would be just as good as a detailed answer.

Thanks!

-- 
Clay
claycle@cisco.com

view thread (4+ messages)  latest in thread

Message-ID: <1056660353.22881.28.camel@gkar>
Permalink:  ../1056660353.22881.28.camel@gkar/
Also on:    postgresql.org/message-id/1056660353.22881.28.camel@gkar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: claycle@cisco.com
  Subject: Re: Dissecting Tuples in C
  In-Reply-To: <1056660353.22881.28.camel@gkar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox