Trigger question.. (Heaptuple struct)

From: "Mitch Vincent" <mitch(at)venux(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Trigger question.. (Heaptuple struct)
Date: 2000-06-29 18:38:05
Message-ID: 026001bfe1f9$2c7c1960$0300000a@doot.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

A programming question, forgive me :-)

In a trigger I see

HeapTuple rettuple = NULL;

[...lala]

rettuple = CurrentTriggerData->tg_trigtuple;

oid = rettuple->t_data->t_oid;

..Which get the OID of the column that pulled the trigger...What I need to
do is get another value out of the record that called the trigger. It's in a
field called app_id. Now I'm guessing that more is to be seen in the
rettuple->t_data struct, but I can't find it so any pointers would be great
.. I've looked through the documentation and couldn't find the answer,
forgive me if I've simply been looking with my eyes closed.

Thanks!!!

-Mitch

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-06-29 19:04:01 Re: Importing data w/ Unix timestamp
Previous Message Ed Loehr 2000-06-29 17:52:12 Re: Importing data w/ Unix timestamp