From: Vik Fearing <vik@postgresfriends.org>
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 23:53:38 +0100
Message-ID: <828ea45d-3126-e5d2-a235-6b8415e5f202@postgresfriends.org> (raw)
In-Reply-To: <20200227212847.GB3663@panix.com>
References: <20200227212847.GB3663@panix.com>
On 27/02/2020 22:28, 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.
There are extensions out there that deal with this for you. Here is
one: https://github.com/xocolatl/periods/> Can a function, called by a trigger, determine what table it was called
> for?
Yes.
--
Vik Fearing
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: vik@postgresfriends.org, stanb@panix.com
Subject: Re: A question relative to creating an audit table
In-Reply-To: <828ea45d-3126-e5d2-a235-6b8415e5f202@postgresfriends.org>
References: <20200227212847.GB3663@panix.com> <828ea45d-3126-e5d2-a235-6b8415e5f202@postgresfriends.org>
* 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