Skip to content

Commit 806917a

Browse files
committed
Adjust format
1 parent 665de67 commit 806917a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
== 实现说明
1313

14-
如果在数据库初始化时附加了参数 `-C`,值可以为 `normal/interchange/lowercase`,则代码中 `Intidb.c-->main()` 函数会处理该参数,根据参数值设置全局变量 `caseswitchmode`。然后 `initdb` 命令会以 `-boot` 模式启动一个 `psotgres` 进程用于设置 `template1` 模板数据库,同时赋予参数 `-C ivorysql.identifier_case_switch=caseswitchmode` 给新进程。
14+
如果在数据库初始化时附加了参数 `-C`,值可以为 `normal/interchange/lowercase`,则代码中 `Intidb.c->main()` 函数会处理该参数,根据参数值设置全局变量 `caseswitchmode`。然后 `initdb` 命令会以 `-boot` 模式启动一个 `psotgres` 进程用于设置 `template1` 模板数据库,同时赋予参数 `-C ivorysql.identifier_case_switch=caseswitchmode` 给新进程。
1515

1616
这个新启动的后端进程会通过下面的代码将 `identifier_case_switch` 信息写入 `pg_control` 文件:
1717

@@ -42,8 +42,6 @@ BackendMain()->BackendInitialize()-->ProcessStartupPacket()
4242
```
4343

4444
另外,在处理用户的 SQL 语句时,如果包含标识符,也会进行同样的处理,代码分布在:
45-
46-
```
4745
SplitIdentifierString(),quoteOneName() 和 SplitGUCList() 这几个函数中。
48-
```
46+
4947

0 commit comments

Comments
 (0)