Re: regdatabase
Tatsuo Ishii <ishii@postgresql.org>
From: Tatsuo Ishii <ishii@postgresql.org>
To: nathandbossart@gmail.com
Cc: pgsql-hackers@postgresql.org
Date: 2025-05-06T22:28:02Z
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
> Every once in a while, I find myself wanting to use regdatabase for > something like current_database()::regdatabase, and I'm always surprised > when I inevitably rediscover that it doesn't exist. I only found one > reference to the idea in the archives [0]. So, I have two questions: > > * Is there an easier way to get the current database's (or any database's) > OID that I am overlooking (besides "SELECT oid FROM pg_database...")? I always do "SELECT oid FROM pg_database...". I have no idea other way. > * Would anyone object if I put together some patches to add regdatabase? I think regdatabase is a good idea. Best regards, -- Tatsuo Ishii SRA OSS K.K. English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp