pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Create event triger
Date: Tue, 10 Jul 2018 12:05:09 +0200
Message-ID: <0a67f47e-947f-4de1-34d4-ffe4813cc0d9@gmx.net> (raw)
In-Reply-To: <CAGv31od1ZSN9Zbu9Qu4F_51z96XETz1qVo7ehctsSrjD4uBhUA@mail.gmail.com>
References: <CAGv31od1ZSN9Zbu9Qu4F_51z96XETz1qVo7ehctsSrjD4uBhUA@mail.gmail.com>

Łukasz Jarych schrieb am 09.07.2018 um 13:03:
> i have small database and i am tracking changes using trigger:
> 
> CREATE TRIGGER t BEFORE INSERT OR UPDATE OR DELETE ON t_trig
> 
>         FOR EACH ROW EXECUTE PROCEDURE change_trigger();
> 
> It is possible to create general trigger for all tables?
> Like event trigger?
> 
> It would be very helpful for me. 
> Now i have to set up this trigger on each table.

Maybe pgaudit is a better solution? 

https://www.pgaudit.org/





view thread (11+ messages)  latest in thread

Message-ID: <0a67f47e-947f-4de1-34d4-ffe4813cc0d9@gmx.net>
Permalink:  ../0a67f47e-947f-4de1-34d4-ffe4813cc0d9@gmx.net/
Also on:    postgresql.org/message-id/0a67f47e-947f-4de1-34d4-ffe4813cc0d9@gmx.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 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: spam_eater@gmx.net
  Subject: Re: Create event triger
  In-Reply-To: <0a67f47e-947f-4de1-34d4-ffe4813cc0d9@gmx.net>
  References: <CAGv31od1ZSN9Zbu9Qu4F_51z96XETz1qVo7ehctsSrjD4uBhUA@mail.gmail.com> <0a67f47e-947f-4de1-34d4-ffe4813cc0d9@gmx.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