public inbox for [email protected]
help / color / mirror / Atom feedFrom: Arnold Hendriks <[email protected]>
To: [email protected]
Subject: Low OIDs (< 16384) when creating databases in single user mode
Date: Fri, 6 Jun 2025 11:16:15 +0200
Message-ID: <CADZkmHUiBeSdm+HZfQ83KPpB2PJ6aBNARjZ-Z3O99-9DosFOUw@mail.gmail.com> (raw)
When creating a new database using the following script:
PGBINDIR="/opt/homebrew/Cellar/postgresql@16/16.9/bin/"
rm -rf /tmp/db
"$PGBINDIR/initdb" -U postgres -D /tmp/db --auth-local=trust
--encoding 'UTF-8' --locale='C'
"$PGBINDIR/postgres" --single -D /tmp/db postgres <<HERE
CREATE DATABASE test;
select oid,datname from pg_database;
HERE
The id 14022 is assigned. This then confuses pgAdmin which expects
databases to have an ID >= 16384 (unless named postgres/edb)
Am I wrong in creating the database this way? Or is pgAdmin wrong in
assuming ids have to be >=16384 ?
Is there a way to ensure new IDs are in the usual range when starting
in in single user mode?
view thread (2+ messages) latest in thread
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]
Subject: Re: Low OIDs (< 16384) when creating databases in single user mode
In-Reply-To: <CADZkmHUiBeSdm+HZfQ83KPpB2PJ6aBNARjZ-Z3O99-9DosFOUw@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