Re: regdatabase
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2025-05-07T04:03:14Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add new OID alias type regdatabase.
- bd09f024a1bb 19 (unreleased) landed
-
pg_upgrade: Preserve database OIDs.
- aa01051418f1 15.0 cited
Nathan Bossart <nathandbossart@gmail.com> writes: > * Would anyone object if I put together some patches to add regdatabase? The original concept of the reg* types was to implement lookups for cases that are more complicated than "(SELECT oid FROM pg_foo WHERE fooname = 'whatever')". As an example, regprocedure would be somewhere between seriously painful and impossible to do by hand. But any potentially-schema-qualified object name is complicated enough to justify having a reg* type, in the original vision. However, we've broken that of late with regnamespace and regrole. regdatabase would be of exactly the same complexity as those cases. So I don't see a reason to object, if you think it's worth the trouble. regards, tom lane