public inbox for [email protected]  
help / color / mirror / Atom feed
From: Dominique Devienne <[email protected]>
To: 張宸瑋 <[email protected]>
Cc: [email protected]
Subject: Re: PostgreSQL Account and Object Timestamp Logging
Date: Fri, 19 Sep 2025 10:13:47 +0200
Message-ID: <CAFCRh-8CVKeJ+-Yn8QqWqrvf=UQPboQ8e3-MN5WWyJbzObDFfQ@mail.gmail.com> (raw)
In-Reply-To: <CAFsaSDg38kUpSurRhzFJa58yYdcc8PXxMi6TXoW3_iJyvdgDWw@mail.gmail.com>
References: <CAFsaSDg38kUpSurRhzFJa58yYdcc8PXxMi6TXoW3_iJyvdgDWw@mail.gmail.com>

On Fri, Sep 19, 2025 at 4:56 AM 張宸瑋 <[email protected]> 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






view thread (3+ messages)

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: PostgreSQL Account and Object Timestamp Logging
  In-Reply-To: <CAFCRh-8CVKeJ+-Yn8QqWqrvf=UQPboQ8e3-MN5WWyJbzObDFfQ@mail.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox