From: Adrian Klaver <adrian.klaver@aklaver.com>
To: stan <stanb@panix.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: A question relative to creating an audit table
Date: Thu, 27 Feb 2020 13:35:57 -0800
Message-ID: <d7a76abb-234e-ce86-d56b-b16aa575b98b@aklaver.com> (raw)
In-Reply-To: <20200227212847.GB3663@panix.com>
References: <20200227212847.GB3663@panix.com>
On 2/27/20 1:28 PM, stan wrote:
> I ma considering setting up a function, and triggers to put a record in an
> audit table when certain tables are altered. I pretty much think I know how
> to do this, with one exception.
>
> Can a function, called by a trigger, determine what table it was called
> for?
>
Asked and answered:
https://www.postgresql.org/message-id/CAKFQuwY=wXXLZBJMv5ULk4P4B5sF+fnZXWThp-UGERE-NxEb4w@mail.gmail...
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, stanb@panix.com
Subject: Re: A question relative to creating an audit table
In-Reply-To: <d7a76abb-234e-ce86-d56b-b16aa575b98b@aklaver.com>
References: <20200227212847.GB3663@panix.com> <d7a76abb-234e-ce86-d56b-b16aa575b98b@aklaver.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