Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions nix/tests/expected/pgaudit.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- Note: there is no test that the logs were correctly output. Only checking for exceptions
set pgaudit.log = 'write, ddl';
set pgaudit.log_relation = on;
set pgaudit.log_level = notice;
create schema v;
create table v.account(
id int,
name text,
password text,
description text
);
insert into v.account (id, name, password, description)
values (1, 'user1', 'HASH1', 'blah, blah');
select
*
from
v.account;
id | name | password | description
----+-------+----------+-------------
1 | user1 | HASH1 | blah, blah
(1 row)

drop schema v cascade;
NOTICE: drop cascades to table v.account
23 changes: 23 additions & 0 deletions nix/tests/sql/pgaudit.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-- Note: there is no test that the logs were correctly output. Only checking for exceptions
set pgaudit.log = 'write, ddl';
set pgaudit.log_relation = on;
set pgaudit.log_level = notice;

create schema v;

create table v.account(
id int,
name text,
password text,
description text
);

insert into v.account (id, name, password, description)
values (1, 'user1', 'HASH1', 'blah, blah');

select
*
from
v.account;

drop schema v cascade;
Loading