Skip to content

Commit 815dfbd

Browse files
authored
Refactor configuration steps for clarity
1 parent 475cef1 commit 815dfbd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CN/modules/ROOT/pages/master/5.7.adoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ make install USE_PGXS=1 PG_CONFIG=$PGHOME/bin/pg_config
4242
=== 注册扩展前的基础配置
4343

4444
1. 修改 `ivorysql.conf`,启用插件并设置常用参数:
45-
46-
[source,conf]
4745
----
4846
shared_preload_libraries = 'pgaudit' # 需实例重启生效
4947
pgaudit.log = 'read, write, ddl' # 审计范围示例,可按需调整
5048
----
5149

52-
2. 重启数据库实例,使共享库配置生效。
50+
重启数据库实例,使共享库配置生效。
5351

5452
=== 创建扩展并验证
5553

@@ -86,7 +84,6 @@ DELETE FROM audit_demo WHERE id = 1;
8684
tail -f $PGDATA/log/*.log | grep 'AUDIT:'
8785
----
8886

89-
9087
[source,text]
9188
----
9289
2025-10-31 15:56:32.113 CST [11451] LOG: AUDIT: SESSION,1,1,DDL,CREATE SEQUENCE,SEQUENCE,public.audit_demo_id_seq,"CREATE TABLE audit_demo(id serial PRIMARY KEY, info text)",<not logged>
@@ -105,6 +102,6 @@ tail -f $PGDATA/log/*.log | grep 'AUDIT:'
105102
ivorysql=# SHOW pgaudit.log_parameter;
106103
pgaudit.log_parameter
107104
-----------------------
108-
off
105+
on
109106
(1 row)
110107
----

0 commit comments

Comments
 (0)