/usr/share/postgresql/10/extension/pgaudit--1.2.sql is in postgresql-10-pgaudit 1.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | /* pgaudit/pgaudit--1.2.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pgaudit" to load this file.\quit
CREATE FUNCTION pgaudit_ddl_command_end()
RETURNS event_trigger
LANGUAGE C
AS 'MODULE_PATHNAME', 'pgaudit_ddl_command_end';
CREATE EVENT TRIGGER pgaudit_ddl_command_end
ON ddl_command_end
EXECUTE PROCEDURE pgaudit_ddl_command_end();
CREATE FUNCTION pgaudit_sql_drop()
RETURNS event_trigger
LANGUAGE C
AS 'MODULE_PATHNAME', 'pgaudit_sql_drop';
CREATE EVENT TRIGGER pgaudit_sql_drop
ON sql_drop
EXECUTE PROCEDURE pgaudit_sql_drop();
|