Skip to content

Commit b6ae15e

Browse files
committed
symlink safeupdate to original path so as not to break any Data API usage
1 parent 5dd89a7 commit b6ae15e

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

migrations/db/migrations/20260403172611_safeupdate-data-api-enable.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
-- migrate:up
2-
ALTER ROLE authenticator SET session_preload_libraries = '$libdir/plugins/safeupdate';
32
ALTER ROLE postgres SET local_preload_libraries = '$libdir/plugins/safeupdate';
43

54
ALTER ROLE postgres SET safeupdate.enabled = 0;

nix/ext/pg-safeupdate.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ let
3232
mkdir -p $out/lib/plugins
3333
# Install versioned library
3434
install -Dm755 ${pname}${postgresql.dlSuffix} $out/lib/plugins/${pname}-${version}${postgresql.dlSuffix}
35+
ln -sfn plugins/${pname}-${version}${postgresql.dlSuffix} $out/lib/${pname}-${version}${postgresql.dlSuffix}
3536
3637
runHook postInstall
3738
'';

nix/tests/expected/roles.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ order by rolname;
6464
----------------------------+-------------------------------------------------------------------------------------------------------------------------------
6565
anon | {statement_timeout=3s}
6666
authenticated | {statement_timeout=8s}
67-
authenticator | {"session_preload_libraries=\"$libdir/plugins/safeupdate\"",statement_timeout=8s,lock_timeout=8s}
67+
authenticator | {session_preload_libraries=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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ order by rolname;
6161
----------------------------+-------------------------------------------------------------------------------------------------------------------------------
6262
anon | {statement_timeout=3s}
6363
authenticated | {statement_timeout=8s}
64-
authenticator | {"session_preload_libraries=\"$libdir/plugins/safeupdate\"",statement_timeout=8s,lock_timeout=8s}
64+
authenticator | {session_preload_libraries=safeupdate,statement_timeout=8s,lock_timeout=8s}
6565
dashboard_user |
6666
pg_checkpoint |
6767
pg_database_owner |

0 commit comments

Comments
 (0)