Re: PostgreSQL Account and Object Timestamp Logging

From: Dominique Devienne <ddevienne(at)gmail(dot)com>
To: 張宸瑋 <kenny020307(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL Account and Object Timestamp Logging
Date: 2025-09-19 08:13:47
Message-ID: CAFCRh-8CVKeJ+-Yn8QqWqrvf=UQPboQ8e3-MN5WWyJbzObDFfQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Sep 19, 2025 at 4:56 AM 張宸瑋 <kenny020307(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wim Rouquart 2025-09-19 09:29:57 RE: Index (primary key) corrupt?
Previous Message Ron Johnson 2025-09-19 04:06:09 Re: pg_restore scan