pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Curtis H. Wilbar Jr. <curtis@hawkmountain.net>
To: pgsql-docs@postgresql.org
Subject: Question regardding info available in customer C trigger function
Date: Tue, 24 Apr 2001 21:13:11 -0400 (EDT)
Message-ID: <200104250105.VAA03355@fury.cw.ici.net> (raw)


I've been scouring the docs, but have not come up with answers for
all my questions.

I found out how to deal with trigger function arguments via PG_GETARG_xxx.

However, is there a way in my C function to determine the name of the
table and of the database that caused the trigger.  This trigger will
be used in several tables in several databases, and while I could pass
these names as parameters, it would be much easier to be able to determine
this via the context when called.

Any info would be greatly appreciated.

-- Curt

Curtis H. Wilbar Jr.
Hawk Mountain Networks
curtis@hawkmountain.net





view thread (2+ messages)  latest in thread

Message-ID: <200104250105.VAA03355@fury.cw.ici.net>
Permalink:  ../200104250105.VAA03355@fury.cw.ici.net/
Also on:    postgresql.org/message-id/200104250105.VAA03355@fury.cw.ici.net

 · 

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-docs@postgresql.org
  Cc: curtis@hawkmountain.net
  Subject: Re: Question regardding info available in customer C trigger function
  In-Reply-To: <200104250105.VAA03355@fury.cw.ici.net>

* 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