非互換
Fujitsu Enterprise Postgres 16では、監査ログにおけるCREATE/ALTER EXTENSION内部のスクリプトステートメントを出力させないように変更しました。
CREATE/ALTER EXTENSIONステートメント自体及びその実行による内部の膨大なスクリプトを監査ログに出力します。
入力: CREATE EXTENSION pg_stat_statements; 監査ログ: WARNING: AUDIT: SESSION,DDL,,[local],,pg_regress/extension,,exts,,1,1,CREATE FUNCTION,,,,,"/* pgaudit/pgaudit--1.0.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION CREATE FUNCTION pgaudit_ddl_command_end() RETURNS event_trigger SECURITY DEFINER SET search_path = 'pg_catalog, pg_temp' LANGUAGE C AS '$libdir/pgaudit', 'pgaudit_ddl_command_end'; CREATE EVENT TRIGGER pgaudit_ddl_command_end ON ddl_command_end EXECUTE PROCEDURE pgaudit_ddl_command_end(); ...(およそ2000行の出力) CREATE VIEW pg_stat_statements AS SELECT * FROM pg_stat_statements(true); GRANT SELECT ON pg_stat_statements TO PUBLIC; ",<none> WARNING: AUDIT: SESSION,DDL,,[local],,pg_regress/extension,,exts,,4,36,CREATE EXTENSION,,EXTENSION,pg_stat_statements,,CREATE EXTENSION pg_stat_statements;,<none>
CREATE/ALTER EXTENSIONステートメント自体のみ監査ログに出力します。
入力: CREATE EXTENSION pg_stat_statements; 監査ログ: WARNING: AUDIT: SESSION,DDL,,[local],,pg_regress/extension,,exts,,4,1,CREATE EXTENSION,,,,,CREATE EXTENSION pg_stat_statements;,<none> WARNING: AUDIT: SESSION,DDL,,[local],,pg_regress/extension,,exts,,4,1,CREATE EXTENSION,,EXTENSION,pg_stat_statements,,CREATE EXTENSION pg_stat_statements;,<none>
対処方法
ありません。