Re: regdatabase - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: regdatabase
Date
Msg-id aBqfC5D6D2ng9QJN@paquier.xyz
Whole thread Raw
In response to Re: regdatabase  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: regdatabase
List pgsql-hackers
On Wed, May 07, 2025 at 07:28:02AM +0900, Tatsuo Ishii wrote:
> I think regdatabase is a good idea.

I've also found your reference from the lists of 2019 to be the only
one referring to a regdatabase.

If it means that I will type less by not having to do joins with
pg_database, count me in.

The last time I recall we've discussed about a reg shortcut was
regcollation, which was mentioned as useful for dumps.  Even if we've
finished by not using it in the dump, I tend to find these shortcuts
always useful.

For regdatabase, there would be at least two simplications related to
the dump of subscriptions, where we could switch the queries to the
new grammar for backend versions able to support the new grammar,
meaning that we could remove entirely these parts in 11~12 years once
the versions that do not support the new reg shortcut would be out of
scope.  :D
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: queryId constant squashing does not support prepared statements
Next
From: Michael Paquier
Date:
Subject: Re: minor fix related to Auxiliary processes and IO workers