Re: A question relative to creating an audit table

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: stan <stanb(at)panix(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: A question relative to creating an audit table
Date: 2020-02-27 21:35:57
Message-ID: d7a76abb-234e-ce86-d56b-b16aa575b98b@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.com

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tory M Blue 2020-02-27 22:45:25 Re: pg_upgrade custom table locations. Move table locations during upgrade?
Previous Message Andrei Zhidenkov 2020-02-27 21:30:15 Re: A question relative to creating an audit table