Re: Tracking role modification timestamps in pg_authid / pg_roles - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Tracking role modification timestamps in pg_authid / pg_roles
Date
Msg-id 5qh7ejjkh3526tpcjosqulitnvgumj25wsxv7iqjgev3qqoi7g@w73fcwn2ul5l
Whole thread
In response to Tracking role modification timestamps in pg_authid / pg_roles  (Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>)
Responses Re: Pgbench: remove synchronous prepare
List pgsql-hackers
Hi,

On 2026-08-21 13:07:42 +1000, Gabriele Bartolini wrote:
> I'd like to propose adding a small column to pg_authid (rollastupdated
> timestamptz), that records when a role was last created or altered, and get
> feedback on the idea before polishing it for a commitfest (a working
> prototype is attached).
>
> Why?

> Tools that manage PostgreSQL roles declaratively all reconcile in the same
> way: given a desired set of roles and attributes, make the live cluster
> match it, repeatedly and idempotently.

My question is why this is needed for pg_authid and not any of the other
catalogs? Adding one-off code for different catalogs one-by-one would ... not
be likely to result in good code.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: Support EXCEPT for TABLES IN SCHEMA publications
Next
From: Michael Paquier
Date:
Subject: Re: Thread-safe stringToNode() / pg_strtok()