Skip to content

Commit 08b71cf

Browse files
authored
better raise
1 parent 00e9aa3 commit 08b71cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/create_user_with_random_password.psql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ begin
4747
|| (case when lower(current_setting('postgres_dba.is_superuser')::text) not in ('0', '', 'no', 'false', 'n', 'f') then ' superuser' else '' end)
4848
|| (case when lower(current_setting('postgres_dba.login')::text) not in ('0', '', 'no', 'false', 'n', 'f') then ' login' else '' end)
4949
|| ' password ''' || pwd || ''';';
50-
raise notice 'SQL: %', sql;
50+
raise debug 'SQL: %', sql;
5151
execute sql;
52-
raise notice 'User % created, password: %', current_setting('postgres_dba.username')::text, pwd;
52+
raise info 'User % created, password: %', current_setting('postgres_dba.username')::text, pwd;
5353
end;
5454
$$ language plpgsql;
5555

0 commit comments

Comments
 (0)