Re: PostgreSQL Account and Object Timestamp Logging - Mailing list pgsql-general

From Dominique Devienne
Subject Re: PostgreSQL Account and Object Timestamp Logging
Date
Msg-id CAFCRh-8CVKeJ+-Yn8QqWqrvf=UQPboQ8e3-MN5WWyJbzObDFfQ@mail.gmail.com
Whole thread Raw
In response to PostgreSQL Account and Object Timestamp Logging  (張宸瑋 <kenny020307@gmail.com>)
List pgsql-general
On Fri, Sep 19, 2025 at 4:56 AM 張宸瑋 <kenny020307@gmail.com> wrote:
> *log* the creation time of user accounts and database objects.

Yes, indirectly, via event triggers:
https://www.postgresql.org/docs/current/event-trigger-matrix.html

But that's specific to a DB, does [NOT fire for CREATE USER/ROLE][1],
only some objects,
and unfortunately, must be SUPERUSER to install it, DB OWNER is not
enough (pity...).

[1]: https://www.postgresql.org/docs/current/event-trigger-matrix.html



pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: pg_restore scan
Next
From: Wim Rouquart
Date:
Subject: RE: Index (primary key) corrupt?