PostgreSQL 15, released on October 13, 2022, changes who can create objects in the public schema by default. But installing the new major version does not automatically give an existing database that tighter permission setup. The project’s release notes say upgrades and restored database dumps preserve the schema’s existing permissions. For a business planning the move, permission review remains a separate job from moving the data. [S1][S2]
The change removes the default CREATE grant to PUBLIC on the public schema. It applies to new database clusters and newly created databases in existing clusters. For an existing database, the release notes advise considering an explicit revocation of CREATE, especially where multiple users are involved. A version check alone cannot tell an administrator whether those older grants remain in place. [S2]
Ownership changes follow the same boundary. For new databases, PostgreSQL 15 assigns the public schema to the pg_database_owner role, allowing the database owner to exercise ownership privileges over that schema. Previously the bootstrap superuser owned it, limiting what a non-superuser database owner could do. Upgrades and dump restoration preserve existing ownership, too. A useful migration test would therefore compare a newly created database with an upgraded one, rather than assume they acquired identical permissions and ownership because they now run the same version. [S2]
Backup maintenance has a more direct compatibility break. PostgreSQL 15 removes the long-deprecated exclusive backup mode, which the release notes say could leave a server unable to start after an abrupt stop. The functions pg_start_backup() and pg_stop_backup() become pg_backup_start() and pg_backup_stop(); pg_backup_start_time() and pg_is_in_backup() are removed. A backup script can therefore need changes even when the database upgrade itself completes. These changes identify calls to check, not proof that every backup product needs replacing. [S2]
There are new backup options as well. The release announcement says pg_basebackup can compress backup files on the server using gzip, LZ4 or Zstandard. The technical notes also describe server-side compression followed by decompression on the client before storage. Administrators can choose where that work happens; the feature announcement does not establish how much storage a particular database will save or how quickly its backup will restore. [S1][S2]
PostgreSQL’s migration notes identify dump-and-restore with pg_dumpall, pg_upgrade or logical replication as routes from an earlier release. Whichever route a team chooses, a sensible acceptance check would inspect the resulting schema grants and ownership, then exercise recovery using its chosen backup tools. A successful data migration would not, on its own, demonstrate that old permissions were tightened or that scripts using removed backup functions still work. [S2]
Source documents
- PostgreSQL 15 Released!https://www.postgresql.org/about/news/postgresql-15-released-2526/
- PostgreSQL 15.0 release notes — Migration to Version 15 and backup changeshttps://www.postgresql.org/docs/release/15.0/
