From a867d79c42419af16c18c3fb019eba8df992626f Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Fri, 5 May 2023 19:34:16 -0300 Subject: [PATCH] nix: withTmpDb psql notice can't mutate the db Use the postgres role instead of the authenticator on the notice --- nix/tools/withTools.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/tools/withTools.nix b/nix/tools/withTools.nix index de36204d0..a5dde6b77 100644 --- a/nix/tools/withTools.nix +++ b/nix/tools/withTools.nix @@ -94,7 +94,7 @@ let log "Done. Running command..." - echo "${commandName}: You can connect with: psql 'postgres:///$PGDATABASE?host=$tmpdir/socket' -U $PGUSER" + echo "${commandName}: You can connect with: psql 'postgres:///$PGDATABASE?host=$tmpdir/socket' -U ${superuserRole}" echo "${commandName}: You can tail the logs with: tail -f $tmpdir/db.log" ("$_arg_command" "''${_arg_leftovers[@]}")