Re: Who altered the database?

From: Ganesh Korde <ganeshakorde(at)gmail(dot)com>
To: Durumdara <durumdara(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Who altered the database?
Date: 2021-04-09 17:00:39
Message-ID: CAPNyb0Wc21g6hvDk2Qshb=u-=N=H+uMf==3WJ+PHhDDx7Ci4AA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 9 Apr 2021, 4:44 pm Durumdara, <durumdara(at)gmail(dot)com> 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?
>
> Thank you for the answer!
>
> Best regards
>
> dd
>
>
>
You can use different options in log_line_prefix parameter in
postgresql.conf
You can also log connection and disconnection, each has separate parameter
in configuration file.

Regards,
Ganesh Korde.

>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Olarte 2021-04-09 17:29:24 Re: where clauses including timstamptz and intervals
Previous Message Tom Lane 2021-04-09 16:23:12 Re: where clauses including timstamptz and intervals