Skip to content

Commit 1ba4bbb

Browse files
authored
Fix supautils in authenticator session_preload_libraries (#2113)
* fix: assure supautils on session_preload_libraries in authenticator role * fix: expected output * fix: quoting * fix: regress tests * chore: bump versions to release
1 parent e37e083 commit 1ba4bbb

4 files changed

Lines changed: 17 additions & 9 deletions

File tree

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ postgres_major:
1010

1111
# Full version strings for each major version
1212
postgres_release:
13-
postgresorioledb-17: "17.6.0.065-orioledb"
14-
postgres17: "17.6.1.108"
15-
postgres15: "15.14.1.108"
13+
postgresorioledb-17: "17.6.0.066-orioledb"
14+
postgres17: "17.6.1.109"
15+
postgres15: "15.14.1.109"
1616

1717
# Non Postgres Extensions
1818
pgbouncer_release: 1.25.1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- migrate:up
2+
3+
-- The original fix in 20220224211803 checked pg_available_extensions for
4+
-- supautils, but supautils is a preload library without a .control file,
5+
-- so it never appears in pg_available_extensions. That migration was a no-op.
6+
ALTER ROLE authenticator SET session_preload_libraries = supautils, safeupdate;
7+
8+
-- migrate:down

nix/tests/expected/roles.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ select
6060
from pg_roles r
6161
where rolname not in ('pg_create_subscription', 'pg_maintain', 'pg_use_reserved_connections')
6262
order by rolname;
63-
rolname | rolconfig
64-
----------------------------+---------------------------------------------------------------------------------
63+
rolname | rolconfig
64+
----------------------------+------------------------------------------------------------------------------------------
6565
anon | {statement_timeout=3s}
6666
authenticated | {statement_timeout=8s}
67-
authenticator | {session_preload_libraries=safeupdate,statement_timeout=8s,lock_timeout=8s}
67+
authenticator | {"session_preload_libraries=supautils, safeupdate",statement_timeout=8s,lock_timeout=8s}
6868
dashboard_user |
6969
pg_checkpoint |
7070
pg_database_owner |

nix/tests/expected/z_multigres-orioledb-17_roles.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ select
5757
from pg_roles r
5858
where rolname not in ('pg_create_subscription', 'pg_maintain', 'pg_use_reserved_connections')
5959
order by rolname;
60-
rolname | rolconfig
61-
----------------------------+---------------------------------------------------------------------------------
60+
rolname | rolconfig
61+
----------------------------+------------------------------------------------------------------------------------------
6262
anon | {statement_timeout=3s}
6363
authenticated | {statement_timeout=8s}
64-
authenticator | {session_preload_libraries=safeupdate,statement_timeout=8s,lock_timeout=8s}
64+
authenticator | {"session_preload_libraries=supautils, safeupdate",statement_timeout=8s,lock_timeout=8s}
6565
dashboard_user |
6666
pg_checkpoint |
6767
pg_database_owner |

0 commit comments

Comments
 (0)