pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Who altered the database?
Date: Fri, 9 Apr 2021 10:56:12 -0500
Message-ID: <3b0705db-1874-0ddf-ac20-3dcd7c494c4b@gmail.com> (raw)
In-Reply-To: <CAEcMXhk1QXPej=Yn8BCi0Sz+Jh5=v9=RcgMinkhTGwq5xNP+0A@mail.gmail.com>
References: <CAEcMXhk1QXPej=Yn8BCi0Sz+Jh5=v9=RcgMinkhTGwq5xNP+0A@mail.gmail.com>

On 4/9/21 6:14 AM, Durumdara wrote:
> Dear Members!
>
> We have a server.
> Because of high usage we can't log DDL-s. There are too many temporary 
> tables created by users, so it would slow down the server.
> A database owner changed.
>
> What can we do to get info about the change (who did it, from what IP, 
> when it happened) in the future?
>
> As I see we can't define precisely what we want to log... All or nothing.
>
> Do you know any tricks to do it?
>
> For example: DB level trigger, or other thing?

pg_audit?

-- 
Angular momentum makes the world go 'round.





view thread (4+ messages)  latest in thread

Message-ID: <3b0705db-1874-0ddf-ac20-3dcd7c494c4b@gmail.com>
Permalink:  ../3b0705db-1874-0ddf-ac20-3dcd7c494c4b@gmail.com/
Also on:    postgresql.org/message-id/3b0705db-1874-0ddf-ac20-3dcd7c494c4b@gmail.com

 · 

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: ronljohnsonjr@gmail.com
  Subject: Re: Who altered the database?
  In-Reply-To: <3b0705db-1874-0ddf-ac20-3dcd7c494c4b@gmail.com>
  References: <CAEcMXhk1QXPej=Yn8BCi0Sz+Jh5=v9=RcgMinkhTGwq5xNP+0A@mail.gmail.com> <3b0705db-1874-0ddf-ac20-3dcd7c494c4b@gmail.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