From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Erik Jones <erik@myemma.com>
Cc: SQL Postgresql List <pgsql-sql@postgresql.org>
Subject: Re: Advice for generalizing trigger functions
Date: Thu, 27 Dec 2007 10:03:13 -0800 (PST)
Message-ID: <276465.18598.qm@web31801.mail.mud.yahoo.com> (raw)
In-Reply-To: <5DD016CF-7FDE-489F-B15A-58B6935B4FBD@myemma.com>
--- On Thu, 12/27/07, Erik Jones <erik@myemma.com> wrote:
> TG_TABLE_NAME will have the name of the table the trigger
> was fired on. With that and using EXECUTE for your INSERT
> statements, you'll probably be set.
True the table name is the easy part, but how do I determine the Primary Key components of the table that will also be needed in the SQL string that will be executed?
Regards,
Richard Broersma Jr.
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-sql@postgresql.org
Cc: rabroersma@yahoo.com, erik@myemma.com
Subject: Re: Advice for generalizing trigger functions
In-Reply-To: <276465.18598.qm@web31801.mail.mud.yahoo.com>
* 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