Skip to content

Commit 8ea465c

Browse files
zjhuntinclaude
andcommitted
Set database owner to fix PG 15+ schema permissions
PostgreSQL 15+ revokes CREATE on the public schema from all users except the database owner. Without setting owner, the database is owned by postgres and the candlepin user cannot create tables. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 52cb9f4 commit 8ea465c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

manifests/database/postgresql.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
password => postgresql::postgresql_password($db_user, $db_password),
5959
encoding => 'utf8',
6060
locale => 'en_US.utf8',
61+
owner => $db_user,
6162
require => Class['candlepin::database::postgresql::encoding'],
6263
}
6364

0 commit comments

Comments
 (0)