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

SERIALs and wraparound

2019-05-23 Thread Arnold Hendriks
Hi List ... I'm investigating how to port our data and applicationsfrom our in-house developed database server to PostgreSQL. One of the challenges I'm running into is in replicating an 'autonumber' column type.. we're used to having a primary key that will autogenerate a 31bit integer that will a