Re: Low OIDs (< 16384) when creating databases in single user mode

2025-06-06 Thread Tom Lane
Arnold Hendriks writes: > Is there a way to ensure new IDs are in the usual range when starting > in in single user mode? No. Start the DB in normal mode, then create objects that you want to be considered user-defined. regards, tom lane

Low OIDs (< 16384) when creating databases in single user mode

2025-06-06 Thread Arnold Hendriks
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 <= 16384 (unless named post