Skip to content

Commit

Permalink
Disable audit logging by default for the pgaudit user.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Jun 26, 2017
1 parent 70b1057 commit 0bff1be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sql/audit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ begin

if not pg_temp.role_exists('pgaudit') then
create user pgaudit in role pgaudit_etl;

-- Disable audit logging for the pgaudit user
alter role pgaudit set pgaudit.log = 'none';
alter role pgaudit set pgaudit.role = '';
end if;
end $$;

Expand Down

0 comments on commit 0bff1be

Please sign in to comment.