From c171ca4f7f934ac87b3d71cb05eb48722f513f7d Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Thu, 26 May 2022 15:54:04 +0800 Subject: [PATCH 1/5] update(mogdb):guc parameters --- .../guc-parameters/14-automatic-vacuuming.md | 4 +- .../1-statement-behavior.md | 102 +++++++++--------- .../2-zone-and-formatting.md | 2 +- .../guc-parameters/18-fault-tolerance.md | 6 +- .../19-connection-pool-parameters.md | 12 +-- .../guc-parameters/20-MogDB-transaction.md | 6 +- .../guc-parameters/21-developer-options.md | 4 +- .../22-auditing/1-audit-switch.md | 6 +- .../22-auditing/3-operation-audit.md | 6 +- .../36-DCF-parameters-settings.md | 12 +-- .../6-write-ahead-log/1-settings.md | 8 +- .../7-ha-replication/1-sending-server.md | 4 +- .../7-ha-replication/2-primary-server.md | 4 +- .../global-syscache-parameters.md | 4 +- 14 files changed, 90 insertions(+), 90 deletions(-) diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/14-automatic-vacuuming.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/14-automatic-vacuuming.md index ee8305dc..9e775570 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/14-automatic-vacuuming.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/14-automatic-vacuuming.md @@ -180,10 +180,10 @@ date: 2021-04-20 ## defer_csn_cleanup_time -**参数说明:**用来指定本地回收时间间隔。 +**参数说明**:用来指定本地回收时间间隔。 该参数属于SIGHUP类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,0~INT_MAX,单位为毫秒(ms)。 +**取值范围**:整型,0~INT_MAX,单位为毫秒(ms)。 **默认值**:5s(即5000ms) diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/15-default-settings-of-client-connection/1-statement-behavior.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/15-default-settings-of-client-connection/1-statement-behavior.md index 0143763e..8f4a5671 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/15-default-settings-of-client-connection/1-statement-behavior.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/15-default-settings-of-client-connection/1-statement-behavior.md @@ -11,7 +11,7 @@ date: 2021-04-20 ## search_path -**参数说明:**当一个被引用对象没有指定模式时,此参数设置模式搜索顺序。它的值由一个或多个模式名构成,不同的模式名用逗号隔开。 +**参数说明**:当一个被引用对象没有指定模式时,此参数设置模式搜索顺序。它的值由一个或多个模式名构成,不同的模式名用逗号隔开。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 @@ -20,7 +20,7 @@ date: 2021-04-20 - 当没有指定一个特定模式而创建一个对象时,它们被放置到以search_path为命名的第一个有效模式中。当搜索路径为空时,会报错误。 - 通过SQL函数current_schema可以检测当前搜索路径的有效值。这和检测search_path的值不尽相同,因为current_schema显示search_path中首位有效的模式名称。 -**取值范围:**字符串 +**取值范围**:字符串 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > @@ -28,7 +28,7 @@ date: 2021-04-20 > - 设置为空串('')的时候,系统会自动转换成一对双引号。 > - 设置的内容中包含双引号,系统会认为是不安全字符,会将每个双引号转换成一对双引号。 -**默认值:**"$user",public +**默认值**:"$user",public > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > @@ -36,13 +36,13 @@ date: 2021-04-20 ## current_schema -**参数说明:**此参数设置当前的模式。 +**参数说明**:此参数设置当前的模式。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**字符串 +**取值范围**:字符串 -**默认值:**"$user",public +**默认值**:"$user",public > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > @@ -50,7 +50,7 @@ date: 2021-04-20 ## default_tablespace -**参数说明:**当CREATE命令没有明确声明表空间时,所创建对象(表和索引等)的缺省表空间。 +**参数说明**:当CREATE命令没有明确声明表空间时,所创建对象(表和索引等)的缺省表空间。 - 值是一个表空间的名称或者一个表示使用当前数据库缺省表空间的空字符串。若指定的是一个非默认表空间,用户必须具有它的CREATE权限,否则尝试创建会失败。 @@ -60,186 +60,186 @@ date: 2021-04-20 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**字符串,其中空表示使用默认表空间。 +**取值范围**:字符串,其中空表示使用默认表空间。 -**默认值:**空 +**默认值**:空 ## temp_tablespaces -**参数说明:**当一个CREATE命令没有明确指定一个表空间时,temp_tablespaces指定了创建临时对象(临时表和临时表的索引)所在的表空间。在这些表空间中创建临时文件用来做大型数据的排序工作。 +**参数说明**:当一个CREATE命令没有明确指定一个表空间时,temp_tablespaces指定了创建临时对象(临时表和临时表的索引)所在的表空间。在这些表空间中创建临时文件用来做大型数据的排序工作。 其值是一系列表空间名的列表。如果列表中有多个表空间时,每次临时对象的创建,MogDB会在列表中随机选择一个表空间;如果在事务中,连续创建的临时对象被放置在列表里连续的表空间中。如果选择的列表中的元素是一个空串,MogDB将自动将当前的数据库设为默认的表空间。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**字符串。空字符串表示所有的临时对象仅在当前数据库默认的表空间中创建,请参见[default_tablespace](#default_tablespace)。 +**取值范围**:字符串。空字符串表示所有的临时对象仅在当前数据库默认的表空间中创建,请参见[default_tablespace](#default_tablespace)。 -**默认值:**空 +**默认值**:空 ## check_function_bodies -**参数说明:**设置是否在CREATE FUNCTION执行过程中进行函数体字符串的合法性验证。为了避免产生问题(比如避免从转储中恢复函数定义时向前引用的问题),偶尔会禁用验证。 +**参数说明**:设置是否在CREATE FUNCTION执行过程中进行函数体字符串的合法性验证。为了避免产生问题(比如避免从转储中恢复函数定义时向前引用的问题),偶尔会禁用验证。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**布尔型 +**取值范围**:布尔型 - on表示在CREATE FUNCTION执行过程中进行函数体字符串的合法性验证。 - off表示在CREATE FUNCTION执行过程中不进行函数体字符串的合法性验证。 -**默认值:**on +**默认值**:on ## default_transaction_isolation -**参数说明:**设置默认的事务隔离级别。 +**参数说明**:设置默认的事务隔离级别。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**枚举类型 +**取值范围**:枚举类型 - read committed表示事务读已提交。 - repeatable read表示事务可重复读。 - serializable,MogDB目前功能上不支持此隔离级别,等价于repeatable read。 -**默认值:**read committed +**默认值**:read committed ## default_transaction_read_only -**参数说明:**设置每个新创建事务是否是只读状态。 +**参数说明**:设置每个新创建事务是否是只读状态。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**布尔型 +**取值范围**:布尔型 - on表示只读状态。 - off表示非只读状态。 -**默认值:**off +**默认值**:off ## default_transaction_deferrable -**参数说明:**控制每个新事务的默认延迟状态。只读事务或者那些比序列化更加低的隔离级别的事务除外。 +**参数说明**:控制每个新事务的默认延迟状态。只读事务或者那些比序列化更加低的隔离级别的事务除外。 MogDB不支持可串行化的隔离级别,因此,该参数无实际意义。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**布尔型 +**取值范围**:布尔型 - on表示默认延迟。 - off表示默认不延迟。 -**默认值:**off +**默认值**:off ## session_replication_role -**参数说明:**控制当前会话与复制相关的触发器和规则的行为。 +**参数说明**:控制当前会话与复制相关的触发器和规则的行为。 该参数属于SUSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:**设置此参数会丢弃之前任何缓存的执行计划。 -**取值范围:**枚举类型 +**取值范围**:枚举类型 - origin表示从当前会话中复制插入、删除、更新等操作。 - replica表示从其他地方复制插入、删除、更新等操作到当前会话。 - local表示函数执行复制时会检测当前登录数据库的角色并采取相应的操作。 -**默认值:**origin +**默认值**:origin ## statement_timeout -**参数说明:**当语句执行时间超过该参数设置的时间(从服务器收到命令时开始计时)时,该语句将会报错并退出执行。 +**参数说明**:当语句执行时间超过该参数设置的时间(从服务器收到命令时开始计时)时,该语句将会报错并退出执行。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,最小值为0,最大值为2147483647,单位为毫秒。 +**取值范围**:整型,最小值为0,最大值为2147483647,单位为毫秒。 -**默认值:**0 +**默认值**:0 ## vacuum_freeze_min_age -**参数说明:**指定VACUUM在扫描一个表时用于判断是否用FrozenXID替换事务ID的中断寿命(在同一个事务中)。 +**参数说明**:指定VACUUM在扫描一个表时用于判断是否用FrozenXID替换事务ID的中断寿命(在同一个事务中)。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,0~576 460 752 303 423 487 +**取值范围**:整型,0~576 460 752 303 423 487 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > 尽管随时可以将此参数设为0到10亿之间的任意值,但是,VACUUM将默认其有效值范围限制在autovacuum_freeze_max_age的50%以内。 -**默认值:**2000000000 +**默认值**:2000000000 ## vacuum_freeze_table_age -**参数说明:**指定VACUUM对全表的扫描冻结元组的时间。如果表的pg_class.relfrozenxid字段的值已经达到了参数指定的时间,VACUUM对全表进行扫描。 +**参数说明**:指定VACUUM对全表的扫描冻结元组的时间。如果表的pg_class.relfrozenxid字段的值已经达到了参数指定的时间,VACUUM对全表进行扫描。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,0~576 460 752 303 423 487 +**取值范围**:整型,0~576 460 752 303 423 487 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > 尽管随时可以将此参数设为零到20亿之间的值,但是,VACUUM将默认其有效值范围限制在autovacuum_freeze_max_age的95%以内。定期的手动VACUUM可以在对此表的反重叠自动清理启动之前运行。 -**默认值:**15000000000 +**默认值**:15000000000 ## bytea_output -**参数说明:**设置bytea类型值的输出格式。 +**参数说明**:设置bytea类型值的输出格式。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**枚举类型 +**取值范围**:枚举类型 - hex:将二进制数据编码为每字节2位十六进制数字。 - escape:传统化的PostgreSQL格式。采用以ASCII字符序列表示二进制串的方法,同时将那些无法表示成ASCII字符的二进制串转换成特殊的转义序列。 -**默认值:**hex +**默认值**:hex ## xmlbinary -**参数说明:**设置二进制值是如何在XML中进行编码的。 +**参数说明**:设置二进制值是如何在XML中进行编码的。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**枚举类型 +**取值范围**:枚举类型 - base64 - hex -**默认值:**base64 +**默认值**:base64 ## xmloption -**参数说明:**当XML和字符串值之间进行转换时,设置document或content是否是隐含的。 +**参数说明**:当XML和字符串值之间进行转换时,设置document或content是否是隐含的。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**枚举类型 +**取值范围**:枚举类型 - document:表示HTML格式的文档。 - content:普通的字符串。 -**默认值:**content +**默认值**:content ## max_compile_functions -**参数说明:**设置服务器存储的函数编译结果的最大数量。存储过多的函数和存储过程的编译结果可能占用很大内存。将此参数设置为一个合理的值,有助于减少内存占用,提升系统性能。 +**参数说明**:设置服务器存储的函数编译结果的最大数量。存储过多的函数和存储过程的编译结果可能占用很大内存。将此参数设置为一个合理的值,有助于减少内存占用,提升系统性能。 该参数属于POSTMASTER类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,1~ 2147483647。 +**取值范围**:整型,1~ 2147483647。 -**默认值:**1000 +**默认值**:1000 ## gin_pending_list_limit -**参数说明:**设置当GIN索引启用fastupdate时,pending list容量的最大值。当pending list的容量大于设置值时,会把pending list中数据批量移动到GIN索引数据结构中以进行清理。单个GIN索引可通过更改索引存储参数覆盖此设置值。 +**参数说明**:设置当GIN索引启用fastupdate时,pending list容量的最大值。当pending list的容量大于设置值时,会把pending list中数据批量移动到GIN索引数据结构中以进行清理。单个GIN索引可通过更改索引存储参数覆盖此设置值。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,最小值为64,最大值为INT_MAX,单位为KB。 +**取值范围**:整型,最小值为64,最大值为INT_MAX,单位为KB。 -**默认值:**4MB +**默认值**:4MB diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/15-default-settings-of-client-connection/2-zone-and-formatting.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/15-default-settings-of-client-connection/2-zone-and-formatting.md index 5640a497..7933f90e 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/15-default-settings-of-client-connection/2-zone-and-formatting.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/15-default-settings-of-client-connection/2-zone-and-formatting.md @@ -9,7 +9,7 @@ date: 2021-04-20 介绍时间格式设置的相关参数。 -## DateStyle +## DateStyle **参数说明**:设置日期和时间值的显示格式,以及有歧义的输入值的解析规则。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/18-fault-tolerance.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/18-fault-tolerance.md index 731bb79a..b7d7280c 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/18-fault-tolerance.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/18-fault-tolerance.md @@ -73,13 +73,13 @@ date: 2021-04-20 ## max_cn_temp_file_size -**参数说明:**指定SQL语句出错自动重试功能中数据库主节点端使用临时文件的最大值,设定为0表示不使用临时文件。 +**参数说明**:指定SQL语句出错自动重试功能中数据库主节点端使用临时文件的最大值,设定为0表示不使用临时文件。 该参数属于SIGHUP类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,0~10485760, 单位为KB。 +**取值范围**:整型,0~10485760, 单位为KB。 -**默认值:**5GB +**默认值**:5GB ## retry_ecode_list diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/19-connection-pool-parameters.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/19-connection-pool-parameters.md index 60d5b726..6a022ea5 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/19-connection-pool-parameters.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/19-connection-pool-parameters.md @@ -11,27 +11,27 @@ date: 2021-04-20 ## pooler_maximum_idle_time -**参数说明:**Pooler链接自动清理功能使用,当链接池中链接空闲时间超过所设置值时,会触发自动清理机制,清理各节点的空闲链接数到minimum_pool_size。 +**参数说明**:Pooler链接自动清理功能使用,当链接池中链接空闲时间超过所设置值时,会触发自动清理机制,清理各节点的空闲链接数到minimum_pool_size。 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** 此参数在该版本不生效。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,最小值为0,最大值为INT_MAX,最小单位为分钟 +**取值范围**:整型,最小值为0,最大值为INT_MAX,最小单位为分钟 -**默认值:**1h(即60min) +**默认值**:1h(即60min) ## minimum_pool_size -**参数说明:**Pooler链接自动清理功能使用,自动清理后各pooler链接池对应节点的链接数最小剩余量,当参数设置为0时,可以关闭pooler链接自动清理功能。 +**参数说明**:Pooler链接自动清理功能使用,自动清理后各pooler链接池对应节点的链接数最小剩余量,当参数设置为0时,可以关闭pooler链接自动清理功能。 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** 此参数在该版本不生效。 该参数属于USERSET类型参数,请参考[GUC参数设置方式](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,最小值为1,最大值为65535 +**取值范围**:整型,最小值为1,最大值为65535 -**默认值:**200 +**默认值**:200 ## cache_connection diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/20-MogDB-transaction.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/20-MogDB-transaction.md index c7a791f1..644bc574 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/20-MogDB-transaction.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/20-MogDB-transaction.md @@ -131,9 +131,9 @@ date: 2021-04-20 该参数属于SIGHUP类型参数,改请参考[GUC参数分类](30-appendix)进行设置 -**取值范围:**布尔型。 +**取值范围**:布尔型。 - on表示延迟计算快照xmin和oldestxmin。 -- off表示实时计算快照xmin和oldestxmin**。** +- off表示实时计算快照xmin和oldestxmin。 -**默认值:**on +**默认值**:on diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/21-developer-options.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/21-developer-options.md index 31044fc1..5aa445be 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/21-developer-options.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/21-developer-options.md @@ -299,7 +299,7 @@ date: 2021-04-20 ## pldebugger_timeout -**参数说明:**该参数用来控制pldebugger server端等待debug端响应的超时时间。 +**参数说明**:该参数用来控制pldebugger server端等待debug端响应的超时时间。 该参数属于USERSET类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 @@ -309,7 +309,7 @@ date: 2021-04-20 ## plsql_show_all_error -**参数说明:**该参数用来控制编译PLPGSQL对象时是否支持跳过报错继续编译,具体影响请参考DBE_PLDEVELOPER内的说明。 +**参数说明**:该参数用来控制编译PLPGSQL对象时是否支持跳过报错继续编译,具体影响请参考DBE_PLDEVELOPER内的说明。 该参数属于USERSET类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/22-auditing/1-audit-switch.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/22-auditing/1-audit-switch.md index 0eab1171..5438742d 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/22-auditing/1-audit-switch.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/22-auditing/1-audit-switch.md @@ -114,12 +114,12 @@ date: 2021-04-20 ## audit_thread_num -**参数说明:**审计线程的个数。 +**参数说明**:审计线程的个数。 该参数属于POSTMASTER类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,1~48 +**取值范围**:整型,1~48 -**默认值:**1 +**默认值**:1 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:** 当audit_dml_state开关打开且在高性能场景下,建议增大此参数保证审计消息可以被及时处理和记录。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/22-auditing/3-operation-audit.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/22-auditing/3-operation-audit.md index 23eb2673..c066413d 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/22-auditing/3-operation-audit.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/22-auditing/3-operation-audit.md @@ -122,16 +122,16 @@ date: 2021-04-20 ## audit_xid_info -**参数说明:**这个参数决定是否在审计日志字段detail_info中记录SQL语句的事务ID。 +**参数说明**:这个参数决定是否在审计日志字段detail_info中记录SQL语句的事务ID。 该参数属于SIGHUP类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,0、1。 +**取值范围**:整型,0、1。 - 0表示关闭审计日志记录事务ID功能。 - 1表示开启审计日志记录事务ID功能。 -**默认值:**0 +**默认值**:0 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:** 如果开启此开关,审计日志中detail_info信息则以xid开始,例如: > diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/36-DCF-parameters-settings.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/36-DCF-parameters-settings.md index 6ebb7dd3..16361318 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/36-DCF-parameters-settings.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/36-DCF-parameters-settings.md @@ -91,23 +91,23 @@ date: 2021-11-08 ## dcf_enable_auto_election_priority -**参数说明:**DCF优先级选主是否允许内部自动调整优先级值。0表示不允许,1表示允许内部自动调整。 +**参数说明**:DCF优先级选主是否允许内部自动调整优先级值。0表示不允许,1表示允许内部自动调整。 该参数属于SIGHUP类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,0~1 +**取值范围**:整型,0~1 -**默认值:**1 +**默认值**:1 ## dcf_election_switch_threshold -**参数说明:**DCF防频繁切主门限。推荐根据用户业务可接受的最大故障时间配置。 +**参数说明**:DCF防频繁切主门限。推荐根据用户业务可接受的最大故障时间配置。 该参数属于SIGHUP类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 -**取值范围:**整型,单位s,0~2147483647 +**取值范围**:整型,单位s,0~2147483647 -**默认值:**0 +**默认值**:0 ## dcf_run_mode diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/6-write-ahead-log/1-settings.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/6-write-ahead-log/1-settings.md index 9b41fc53..103cea1a 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/6-write-ahead-log/1-settings.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/6-write-ahead-log/1-settings.md @@ -273,7 +273,7 @@ date: 2021-04-20 ## wal_flush_timeout -**参数说明:**遍历WalInsertStatusEntryTbl的超时时间。Xlog刷盘自适应控制的刷盘IO遍历WalInsertStatusEntryTbl等待的最大时间。 +**参数说明**:遍历WalInsertStatusEntryTbl的超时时间。Xlog刷盘自适应控制的刷盘IO遍历WalInsertStatusEntryTbl等待的最大时间。 该参数属于SIGHUP类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 @@ -281,14 +281,14 @@ date: 2021-04-20 **取值范围**:整型, 0 ~ 90000000(微秒) -**默认值:**2us +**默认值**:2us ## wal_flush_delay -**参数说明:**遍历WalInsertStatusEntryTbl时,遇到WAL_NOT_COPIED状态entry时等待的时间间隔。 +**参数说明**:遍历WalInsertStatusEntryTbl时,遇到WAL_NOT_COPIED状态entry时等待的时间间隔。 该参数属于SIGHUP类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 **取值范围**:整型, 0 ~ 90000000(微秒) -**默认值:**1us +**默认值**:1us diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/7-ha-replication/1-sending-server.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/7-ha-replication/1-sending-server.md index 1d587602..34515e8a 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/7-ha-replication/1-sending-server.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/7-ha-replication/1-sending-server.md @@ -109,7 +109,7 @@ date: 2021-04-20 ## enable_wal_shipping_compression -**参数说明:**在流式容灾模式下设置启动跨数据库实例日志压缩功能。 +**参数说明**:在流式容灾模式下设置启动跨数据库实例日志压缩功能。 该参数属于SIGHUP类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 @@ -120,7 +120,7 @@ date: 2021-04-20 - true表示打开流式容灾跨数据库实例日志压缩 - false表示关闭流式容灾跨数据库实例日志压缩 -**默认值:**false +**默认值**:false ## replconninfoN diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md index 77b53f9d..1eb9912a 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md @@ -71,7 +71,7 @@ date: 2021-04-20 ## keep_sync_window -**参数说明:**延迟进入最大可用模式的时间。 +**参数说明**:延迟进入最大可用模式的时间。 - 当最大可用模式most_available_sync配置为on,在主备场景下,当存在同步备发生故障,导致不满足当前所配置的同步备数量(详细可参考synchonous_standby_name的含义)时,如果配置了keep_sync_window参数, 则在keep_sync_window设置的时间窗口内,继续保持最大保护模式,即阻塞主机的事务提交, 延缓进入最大可用模式的时间。 - 若在keep_sync_window超时窗口内,同步备机故障恢复,且满足当前所配置的同步备数量, 则不阻塞事务, 恢复到正常状态. @@ -79,7 +79,7 @@ date: 2021-04-20 该参数属于SIGHUP类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 -**取值范围:**整形,范围0~INT_MAX,单位为秒。 +**取值范围**:整形,范围0~INT_MAX,单位为秒。 - 0表示不设置keep_sync_window超时时间窗口, 即直接进入最大可用模式。 - 其余表示keep_sync_window超时时间窗口的大小。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/global-syscache-parameters.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/global-syscache-parameters.md index 25a87402..1434f35d 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/global-syscache-parameters.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/global-syscache-parameters.md @@ -22,7 +22,7 @@ date: 2022-05-23 ## global_syscache_threshold -**参数说明:**全局系统缓存内存最大占用大小。 +**参数说明**:全局系统缓存内存最大占用大小。 该参数属于PGC_SIGHUP类型参数,请参考[GUC参数分类](30-appendix)中对应设置方法进行设置。 @@ -30,7 +30,7 @@ date: 2022-05-23 **取值范围**:整型,16384~1073741824,单位为kB。 -**默认值:**163840 +**默认值**:163840 推荐计算公式:热点DB个数和线程个数的最小值乘以每个DB分配的内存大小 -- Gitee From 790c3622c43e5bfe9108fecaef7d795c840cf346 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Thu, 26 May 2022 16:02:54 +0800 Subject: [PATCH 2/5] add(mogdb):guc parameters list --- .../guc-parameters/guc-parameter-list.md | 701 ++++++++++++++++++ product/zh/docs-mogdb/v3.0/toc.md | 1 + .../v3.0/toc_parameters-and-tools.md | 1 + 3 files changed, 703 insertions(+) create mode 100644 product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/guc-parameter-list.md diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/guc-parameter-list.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/guc-parameter-list.md new file mode 100644 index 00000000..3d219853 --- /dev/null +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/guc-parameter-list.md @@ -0,0 +1,701 @@ +--- +title: GUC参数列表 +summary: GUC参数列表 +author: Guo Huan +date: 2022-05-26 +--- + +# GUC参数列表 + +| GUC参数索引 | +| ------------------------------------------------------------ | +| [acce_min_datasize_per_thread](39-reserved-parameters) | +| [advance_xlog_file_num](21-developer-options#advance_xlog_file_num) | +| [agent_backup_open](cm_agent#agent_backup_open) | +| [agent_check_interval](cm_agent#agent_check_interval) | +| [agent_connect_retries](cm_agent#agent_connect_retries) | +| [agent_connect_timeout](cm_agent#agent_connect_timeout) | +| [agent_heartbeat_timeout](cm_agent#agent_heartbeat_timeout) | +| [agent_kill_instance_timeout](cm_agent#agent_kill_instance_timeout) | +| [agent_phony_dead_check_interval](cm_agent#agent_phony_dead_check_interval) | +| [agent_report_interval](cm_agent#agent_report_interval) | +| [alarm_component](cm_agent#alarm_component) | +| [alarm_report_interval](11-alarm-detection#alarm_report_interval) | +| [alarm_report_max_count](cm_agent#alarm_report_max_count) | +| [allocate_mem_cost](2-optimizer-cost-constants#allocate_mem_cost) | +| [allow_concurrent_tuple_update](20-MogDB-transaction#allow_concurrent_tuple_update) | +| [allow_system_table_mods](21-developer-options#allow_system_table_mods) | +| [analysis_options](4-other-optimizer-options#analysis_options) | +| [application_name](1-connection-settings#application_name) | +| [archive_command](4-archiving#archive_command) | +| [archive_dest](4-archiving#archive_dest) | +| [archive_mode](4-archiving#archive_mode) | +| [archive_timeout](4-archiving#archive_timeout) | +| [array_nulls](1-compatibility-with-earlier-versions#array_nulls) | +| [asp_flush_mode](27-system-performance-snapshot#asp_flush_mode) | +| [asp_flush_rate](27-system-performance-snapshot#asp_flush_rate) | +| [asp_log_filename](27-system-performance-snapshot#asp_log_filename) | +| [asp_retention_days](27-system-performance-snapshot#asp_retention_days) | +| [asp_sample_interval](27-system-performance-snapshot#asp_sample_interval) | +| [asp_sample_num](27-system-performance-snapshot#asp_sample_num) | +| [audit_copy_exec](3-operation-audit#audit_copy_exec) | +| [audit_data_format](1-audit-switch#audit_data_format) | +| [audit_database_process](2-user-and-permission-audit#audit_database_process) | +| [audit_directory](1-audit-switch#audit_directory) | +| [audit_dml_state](3-operation-audit#audit_dml_state) | +| [audit_dml_state_select](3-operation-audit#audit_dml_state_select) | +| [audit_enabled](1-audit-switch#audit_enabled) | +| [audit_file_remain_threshold](1-audit-switch#audit_file_remain_threshold) | +| [audit_file_remain_time](1-audit-switch#audit_file_remain_time) | +| [audit_function_exec](3-operation-audit#audit_function_exec) | +| [audit_grant_revoke](2-user-and-permission-audit#audit_grant_revoke) | +| [audit_login_logout](2-user-and-permission-audit#audit_login_logout) | +| [audit_resource_policy](1-audit-switch#audit_resource_policy) | +| [audit_rotation_interval](1-audit-switch#audit_rotation_interval) | +| [audit_rotation_size](1-audit-switch#audit_rotation_size) | +| [audit_set_parameter](3-operation-audit#audit_set_parameter) | +| [audit_space_limit](1-audit-switch#audit_space_limit) | +| [audit_system_object](3-operation-audit#audit_system_object) | +| [audit_thread_num](1-audit-switch#audit_thread_num) | +| [audit_user_locked](2-user-and-permission-audit#audit_user_locked) | +| [audit_user_violation](2-user-and-permission-audit#audit_user_violation) | +| [audit_xid_info](3-operation-audit#audit_xid_info) | +| [auth_iteration_count](2-security-and-authentication#auth_iteration_count) | +| [authentication_timeout](2-security-and-authentication#authentication_timeout) | +| [auto_explain_level](4-other-optimizer-options#auto_explain_level) | +| [autoanalyze](4-other-optimizer-options#autoanalyze) | +| [autoanalyze_timeout](14-automatic-vacuuming#autoanalyze_timeout) | +| [autovacuum](14-automatic-vacuuming#autovacuum) | +| [autovacuum_analyze_scale_factor](14-automatic-vacuuming#autovacuum_analyze_scale_factor) | +| [autovacuum_analyze_threshold](14-automatic-vacuuming#autovacuum_analyze_threshold) | +| [autovacuum_freeze_max_age](14-automatic-vacuuming#autovacuum_freeze_max_age) | +| [autovacuum_io_limits](14-automatic-vacuuming#autovacuum_io_limits) | +| [autovacuum_max_workers](14-automatic-vacuuming#autovacuum_max_workers) | +| [autovacuum_mode](14-automatic-vacuuming#autovacuum_mode) | +| [autovacuum_naptime](14-automatic-vacuuming#autovacuum_naptime) | +| [autovacuum_vacuum_cost_delay](14-automatic-vacuuming#autovacuum_vacuum_cost_delay) | +| [autovacuum_vacuum_cost_limit](14-automatic-vacuuming#autovacuum_vacuum_cost_limit) | +| [autovacuum_vacuum_scale_factor](14-automatic-vacuuming#autovacuum_vacuum_scale_factor) | +| [autovacuum_vacuum_threshold](14-automatic-vacuuming#autovacuum_vacuum_threshold) | +| [available_zone](1-sending-server#available_zone) | +| [az_check_and_arbitrate_interval](cm_server#az_check_and_arbitrate_interval) | +| [az_connect_check_delay_time](cm_server#az_connect_check_delay_time) | +| [az_connect_check_interval](cm_server#az_connect_check_interval) | +| [az_switchover_threshold](cm_server#az_switchover_threshold) | +| [backend_flush_after](6-asynchronous-io-operations#backend_flush_after) | +| [backend_version](39-reserved-parameters) | +| [backslash_quote](1-compatibility-with-earlier-versions#backslash_quote) | +| [backtrace_min_messages](2-logging-time#backtrace_min_messages) | +| [backup_open](cm_server#backup_open) | +| [backwrite_quantity](6-asynchronous-io-operations#backwrite_quantity) | +| [basebackup_timeout](24-miscellaneous-parameters#basebackup_timeout) | +| [bbox_dump_count](13-load-management#bbox_dump_count) | +| [bbox_dump_path](13-load-management#bbox_dump_path) | +| [behavior_compat_options](2-platform-and-client-compatibility#behavior_compat_options) | +| [bgwriter_delay](5-background-writer#bgwriter_delay) | +| [bgwriter_flush_after](6-asynchronous-io-operations#bgwriter_flush_after) | +| [bgwriter_lru_maxpages](5-background-writer#bgwriter_lru_maxpages) | +| [bgwriter_lru_multiplier](5-background-writer#bgwriter_lru_multiplier) | +| [bgwriter_thread_num](5-background-writer#bgwriter_thread_num) | +| [block_size](24-miscellaneous-parameters#block_size) | +| [bulk_read_ring_size](1-memory#bulk_read_ring_size) | +| [bulk_write_ring_size](1-memory#bulk_write_ring_size) | +| [bytea_output](1-statement-behavior#bytea_output) | +| [cache_connection](19-connection-pool-parameters#cache_connection) | +| [candidate_buf_percent_target](5-background-writer#candidate_buf_percent_target) | +| [catchup2normal_wait_time](2-primary-server#catchup2normal_wait_time) | +| [cgroup_name](13-load-management#cgroup_name) | +| [check_function_bodies](1-statement-behavior#check_function_bodies) | +| [check_implicit_conversions](1-optimizer-method-configuration#check_implicit_conversions) | +| [checkpoint_completion_target](2-checkpoints#checkpoint_completion_target) | +| [checkpoint_flush_after](6-asynchronous-io-operations#checkpoint_flush_after) | +| [checkpoint_segments](2-checkpoints#checkpoint_segments) | +| [checkpoint_timeout](2-checkpoints#checkpoint_timeout) | +| [checkpoint_wait_timeout](2-checkpoints#checkpoint_wait_timeout) | +| [checkpoint_warning](2-checkpoints#checkpoint_warning) | +| [client_encoding](2-zone-and-formatting#client_encoding) | +| [client_min_messages](2-logging-time#client_min_messages) | +| [cm_auth_method](cm_server#cm_auth_method) | +| [cm_krb_server_keyfile](cm_server#cm_krb_server_keyfile) | +| [cm_server_arbitrate_delay_base_time_out](cm_server#cm_server_arbitrate_delay_base_time_out) | +| [cm_server_arbitrate_delay_incrememtal_time_out](cm_server#cm_server_arbitrate_delay_incrememtal_time_out) | +| [cmserver_demote_delay_on_etcd_fault](cm_server#cmserver_demote_delay_on_etcd_fault) | +| [cmserver_ha_connect_timeout](cm_server#cmserver_ha_connect_timeout) | +| [cmserver_ha_heartbeat_timeout](cm_server#cmserver_ha_heartbeat_timeout) | +| [cmserver_ha_status_interval](cm_server#cmserver_ha_status_interval) | +| [cmserver_self_vote_timeout](cm_server#cmserver_self_vote_timeout) | +| [cn_send_buffer_size](18-fault-tolerance#cn_send_buffer_size) | +| [codegen_cost_threshold](4-other-optimizer-options#codegen_cost_threshold) | +| [codegen_mot_limit](8-mot#codegen_mot_limit) | +| [codegen_strategy](4-other-optimizer-options#codegen_strategy) | +| [comm_proxy_attr](3-communication-library-parameters#comm_proxy_attr) | +| [commit_delay](1-settings#commit_delay) | +| [commit_siblings](1-settings#commit_siblings) | +| [config_file](2-file-location#config_file) | +| [connection_alarm_rate](11-alarm-detection#connection_alarm_rate) | +| [connection_info](1-connection-settings#connection_info) | +| [constraint_exclusion](4-other-optimizer-options#constraint_exclusion) | +| [convert_string_to_digit](2-platform-and-client-compatibility#convert_string_to_digit) | +| [cost_param](4-other-optimizer-options#cost_param) | +| [cost_weight_index](1-optimizer-method-configuration#cost_weight_index) | +| [cpu_collect_timer](13-load-management#cpu_collect_timer) | +| [cpu_index_tuple_cost](2-optimizer-cost-constants#cpu_index_tuple_cost) | +| [cpu_operator_cost](2-optimizer-cost-constants#cpu_operator_cost) | +| [cpu_tuple_cost](2-optimizer-cost-constants#cpu_tuple_cost) | +| [cross_cluster_replconninfoN](1-sending-server#cross_cluster_replconninfon) | +| [cstore_backwrite_max_threshold](6-asynchronous-io-operations#cstore_backwrite_max_threshold) | +| [cstore_backwrite_quantity](6-asynchronous-io-operations#cstore_backwrite_quantity) | +| [cstore_buffers](1-memory#cstore_buffers) | +| [cstore_insert_mode](39-reserved-parameters) | +| [cstore_prefetch_quantity](6-asynchronous-io-operations#cstore_prefetch_quantity) | +| [current_schema](1-statement-behavior#current_schema) | +| [cursor_tuple_fraction](4-other-optimizer-options#cursor_tuple_fraction) | +| [data_directory](2-file-location#data_directory) | +| [data_replicate_buffer_size](2-primary-server#data_replicate_buffer_size) | +| [data_sync_retry](18-fault-tolerance#data_sync_retry) | +| [datanode_heartbeat_interval](24-miscellaneous-parameters#datanode_heartbeat_interval) | +| [datastorage_threshold_check_interval](cm_server#datastorage_threshold_check_interval) | +| [datastorage_threshold_value_check](cm_server#datastorage_threshold_value_check) | +| [DateStyle](2-zone-and-formatting#datestyle) | +| [db4ai_snapshot_mode](40-AI-features#db4ai_snapshot_mode) | +| [db4ai_snapshot_version_delimiter](40-AI-features#db4ai_snapshot_version_delimiter) | +| [db4ai_snapshot_version_separator](40-AI-features#db4ai_snapshot_version_separator) | +| [dcf_compress_algorithm](36-DCF-parameters-settings#dcf_compress_algorithm) | +| [dcf_compress_level](36-DCF-parameters-settings#dcf_compress_level) | +| [dcf_config](36-DCF-parameters-settings#dcf_config) | +| [dcf_connect_timeout](36-DCF-parameters-settings#dcf_connect_timeout) | +| [dcf_data_path](36-DCF-parameters-settings#dcf_data_path) | +| [dcf_election_switch_threshold](36-DCF-parameters-settings#dcf_election_switch_threshold) | +| [dcf_election_timeout](36-DCF-parameters-settings#dcf_election_timeout) | +| [dcf_enable_auto_election_priority](36-DCF-parameters-settings#dcf_enable_auto_election_priority) | +| [dcf_flow_control_cpu_threshold](36-DCF-parameters-settings#dcf_flow_control_cpu_threshold) | +| [dcf_flow_control_disk_rawait_threshold](36-DCF-parameters-settings#dcf_flow_control_disk_rawait_threshold) | +| [dcf_flow_control_net_queue_message_num_threshold](36-DCF-parameters-settings#dcf_flow_control_net_queue_message_num_threshold) | +| [dcf_log_backup_file_count](36-DCF-parameters-settings#dcf_log_backup_file_count) | +| [dcf_log_file_permission](36-DCF-parameters-settings#dcf_log_file_permission) | +| [dcf_log_level](36-DCF-parameters-settings#dcf_log_level) | +| [dcf_log_path](36-DCF-parameters-settings#dcf_log_path) | +| [dcf_log_path_permission](36-DCF-parameters-settings#dcf_log_path_permission) | +| [dcf_max_log_file_size](36-DCF-parameters-settings#dcf_max_log_file_size) | +| [dcf_max_workers](36-DCF-parameters-settings#dcf_max_workers) | +| [dcf_mec_agent_thread_num](36-DCF-parameters-settings#dcf_mec_agent_thread_num) | +| [dcf_mec_batch_size](36-DCF-parameters-settings#dcf_mec_batch_size) | +| [dcf_mec_channel_num](36-DCF-parameters-settings#dcf_mec_channel_num) | +| [dcf_mec_fragment_size](36-DCF-parameters-settings#dcf_mec_fragment_size) | +| [dcf_mec_pool_max_size](36-DCF-parameters-settings#dcf_mec_pool_max_size) | +| [dcf_mec_reactor_thread_num](36-DCF-parameters-settings#dcf_mec_reactor_thread_num) | +| [dcf_mem_pool_init_size](36-DCF-parameters-settings#dcf_mem_pool_init_size) | +| [dcf_mem_pool_max_size](36-DCF-parameters-settings#dcf_mem_pool_max_size) | +| [dcf_node_id](36-DCF-parameters-settings#dcf_node_id) | +| [dcf_rep_append_thread_num](36-DCF-parameters-settings#dcf_rep_append_thread_num) | +| [dcf_run_mode](36-DCF-parameters-settings#dcf_run_mode) | +| [dcf_socket_timeout](36-DCF-parameters-settings#dcf_socket_timeout) | +| [dcf_ssl](36-DCF-parameters-settings#dcf_ssl) | +| [dcf_stg_pool_init_size](36-DCF-parameters-settings#dcf_stg_pool_init_size) | +| [dcf_stg_pool_max_size](36-DCF-parameters-settings#dcf_stg_pool_max_size) | +| [dcf_truncate_threshold](36-DCF-parameters-settings#dcf_truncate_threshold) | +| [ddb_election_timeout](cm_server#ddb_election_timeout) | +| [ddb_log_backup_file_count](cm_server#ddb_log_backup_file_count) | +| [ddb_log_level](cm_server#ddb_log_level) | +| [ddb_log_suppress_enable](cm_server#ddb_log_suppress_enable) | +| [ddb_max_log_file_size](cm_server#ddb_max_log_file_size) | +| [ddb_type](cm_server#ddb_type) | +| [deadlock_timeout](16-lock-management#deadlock_timeout) | +| [debug_assertions](21-developer-options#debug_assertions) | +| [debug_pretty_print](3-logging-content#debug_pretty_print) | +| [debug_print_parse](3-logging-content#debug_print_parse) | +| [debug_print_plan](3-logging-content#debug_print_plan) | +| [debug_print_rewritten](3-logging-content#debug_print_rewritten) | +| [default_limit_rows](1-optimizer-method-configuration#default_limit_rows) | +| [default_statistics_target](4-other-optimizer-options#default_statistics_target) | +| [default_tablespace](1-statement-behavior#default_tablespace) | +| [default_text_search_config](2-zone-and-formatting#default_text_search_config) | +| [default_transaction_deferrable](1-statement-behavior#default_transaction_deferrable) | +| [default_transaction_isolation](1-statement-behavior#default_transaction_isolation) | +| [default_transaction_read_only](1-statement-behavior#default_transaction_read_only) | +| [defer_csn_cleanup_time](14-automatic-vacuuming#defer_csn_cleanup_time) | +| [delay_arbitrate_timeout](cm_server#delay_arbitrate_timeout) | +| [dilatation_shard_count_for_disk_capacity_alarm](cm_agent#dilatation_shard_count_for_disk_capacity_alarm) | +| [dirty_page_percent_max](5-background-writer#dirty_page_percent_max) | +| [disable_memory_protect](13-load-management#disable_memory_protect) | +| [disaster_recovery_type](cm_agent#disaster_recovery_type) | +| [dw_file_num](5-background-writer#dw_file_num) | +| [dw_file_size](5-background-writer#dw_file_size) | +| [dynamic_library_path](3-other-default-parameters#dynamic_library_path) | +| [effective_cache_size](2-optimizer-cost-constants#effective_cache_size) | +| [effective_io_concurrency](6-asynchronous-io-operations#effective_io_concurrency) | +| [elastic_search_ip_addr](27.1-security-configuration#elastic_search_ip_addr) | +| [enable_absolute_tablespace](1-optimizer-method-configuration#enable_absolute_tablespace) | +| [enable_access_server_directory](3-operation-audit#enable_access_server_directory) | +| [enable_adio_debug](6-asynchronous-io-operations#enable_adio_debug) | +| [enable_adio_function](6-asynchronous-io-operations#enable_adio_function) | +| [enable_alarm](11-alarm-detection#enable_alarm) | +| [enable_analyze_check](4-other-optimizer-options#enable_analyze_check) | +| [enable_asp](27-system-performance-snapshot#enable_asp) | +| [enable_auto_clean_unique_sql](26-query#enable_auto_clean_unique_sql) | +| [enable_auto_explain](4-other-optimizer-options#enable_auto_explain) | +| [enable_az_auto_switchover](cm_server#enable_az_auto_switchover) | +| [enable_bbox_dump](13-load-management#enable_bbox_dump) | +| [enable_beta_features](1-compatibility-with-earlier-versions#enable_beta_features) | +| [enable_beta_opfusion](21-developer-options#enable_beta_opfusion) | +| [enable_bitmapscan](1-optimizer-method-configuration#enable_bitmapscan) | +| [enable_bloom_filter](4-other-optimizer-options#enable_bloom_filter) | +| [enable_cbm_tracking](34-backup-and-restoration#enable_cbm_tracking) | +| [enable_change_hjcost](1-optimizer-method-configuration#enable_change_hjcost) | +| [enable_codegen](4-other-optimizer-options#enable_codegen) | +| [enable_codegen_mot](8-mot#enable_codegen_mot) | +| [enable_codegen_mot_print](8-mot#enable_codegen_mot_print) | +| [enable_codegen_print](4-other-optimizer-options#enable_codegen_print) | +| [enable_compress_spill](21-developer-options#enable_compress_spill) | +| [enable_consider_usecount](5-background-writer#enable_consider_usecount) | +| [enable_constraint_optimization](39-reserved-parameters) | +| [enable_data_replicate](2-primary-server#enable_data_replicate) | +| [enable_dcf](cm_agent#enable_dcf) | +| [enable_debug_vacuum](3-logging-content#enable_debug_vacuum) | +| [enable_default_ustore_table](24-miscellaneous-parameters#enable_default_ustore_table) | +| [enable_defer_calculate_snapshot](20-MogDB-transaction#enable_defer_calculate_snapshot) | +| [enable_double_write](2-checkpoints#enable_double_write) | +| [enable_early_free](1-memory#enable_early_free) | +| [enable_extrapolation_stats](4-other-optimizer-options#enable_extrapolation_stats) | +| [enable_fast_allocate](6-asynchronous-io-operations#enable_fast_allocate) | +| [enable_fast_numeric](21-developer-options#enable_fast_numeric) | +| [enable_ffic_log](13-load-management#enable_ffic_log) | +| [enable_force_vector_engine](4-other-optimizer-options#enable_force_vector_engine) | +| [enable_global_plancache](4-other-optimizer-options#enable_global_plancache) | +| [enable_global_stats](4-other-optimizer-options#enable_global_stats) | +| [enable_global_syscache](global-syscache-parameters#enable_global_syscache) | +| [enable_hadoop_env](39-reserved-parameters) | +| [enable_hashagg](1-optimizer-method-configuration#enable_hashagg) | +| [enable_hashjoin](1-optimizer-method-configuration#enable_hashjoin) | +| [enable_hdfs_predicate_pushdown](39-reserved-parameters) | +| [enable_hypo_index](4-other-optimizer-options#enable_hypo_index) | +| [enable_incremental_catchup](2-primary-server#enable_incremental_catchup) | +| [enable_incremental_checkpoin](2-checkpoints#enable_incremental_checkpoint) | +| [enable_index_nestloop](1-optimizer-method-configuration#enable_index_nestloop) | +| [enable_indexonlyscan](1-optimizer-method-configuration#enable_indexonlyscan) | +| [enable_indexscan](1-optimizer-method-configuration#enable_indexscan) | +| [enable_instance_metric_persistent](13-load-management#enable_instance_metric_persistent) | +| [enable_instr_cpu_timer](26-query#enable_instr_cpu_timer) | +| [enable_instr_rt_percentile](26-query#enable_instr_rt_percentile) | +| [enable_instr_track_wait](25-wait-events#enable_instr_track_wait) | +| [enable_kill_query](1-optimizer-method-configuration#enable_kill_query) | +| [enable_logical_io_statistics](13-load-management#enable_logical_io_statistics) | +| [enable_log_compress](cm_agent#enable_log_compress) | +| [enable_material](1-optimizer-method-configuration#enable_material) | +| [enable_memory_context_contro](1-memory#enable_memory_context_control) | +| [enable_memory_limit](1-memory#enable_memory_limit) | +| [enable_mergejoin](1-optimizer-method-configuration#enable_mergejoin) | +| [enable_mix_replication](2-primary-server#enable_mix_replication) | +| [enable_nestloop](1-optimizer-method-configuration#enable_nestloop) | +| [enable_nodegroup_debug](1-optimizer-method-configuration#enable_nodegroup_debug) | +| [enable_nonsysadmin_execute_direct](3-operation-audit#enable_nonsysadmin_execute_direct) | +| [enable_online_ddl_waitlock](16-lock-management#enable_online_ddl_waitlock) | +| [enable_opfusion](4-other-optimizer-options#enable_opfusion) | +| [enable_orc_cache](39-reserved-parameters) | +| [enable_page_lsn_check](3-log-replay#enable_page_lsn_check) | +| [enable_partition_opfusion](4-other-optimizer-options#enable_partition_opfusion) | +| [enable_partitionwise](4-other-optimizer-options#enable_partitionwise) | +| [enable_pbe_optimization](4-other-optimizer-options#enable_pbe_optimization) | +| [enable_prevent_job_task_startup](31-scheduled-task#enable_prevent_job_task_startup) | +| [enable_recyclebin](37-flashback#enable_recyclebin) | +| [enable_resource_record](13-load-management#enable_resource_record) | +| [enable_resource_track](13-load-management#enable_resource_track) | +| [enable_save_datachanged_timestamp](1-query-and-index-statistics-collector#enable_save_datachanged_timestamp) | +| [enable_security_policy](27.1-security-configuration#enable_security_policy) | +| [enable_seqscan](1-optimizer-method-configuration#enable_seqscan) | +| [enable_show_any_tuples](20-MogDB-transaction#enable_show_any_tuples) | +| [enable_slot_log](1-sending-server#enable_slot_log) | +| [enable_sonic_hashagg](4-other-optimizer-options#enable_sonic_hashagg) | +| [enable_sonic_hashjoin](4-other-optimizer-options#enable_sonic_hashjoin) | +| [enable_sonic_optspill](4-other-optimizer-options#enable_sonic_optspill) | +| [enable_sort](1-optimizer-method-configuration#enable_sort) | +| [enable_ssl](cm_server#enable_ssl) | +| [enable_startwith_debug](4-other-optimizer-options#enable_startwith_debug) | +| [enable_stmt_track](26-query#enable_stmt_track) | +| [enable_stream_replication](2-primary-server#enable_stream_replication) | +| [enable_tde](27.1-security-configuration#enable_tde) | +| [enable_transaction_read_only](cm_server#enable_transaction_read_only) | +| [enable_thread_pool](32-thread-pool#enable_thread_pool) | +| [enable_tidscan](1-optimizer-method-configuration#enable_tidscan) | +| [enable_upgrade_merge_lock_mode](24-miscellaneous-parameters#enable_upgrade_merge_lock_mode) | +| [enable_user_metric_persisten](13-load-management#enable_user_metric_persistent) | +| [enable_valuepartition_pruning](1-optimizer-method-configuration#enable_valuepartition_prunin) | +| [enable_vector_engine](1-optimizer-method-configuration#enable_vector_engine) | +| [enable_wal_shipping_compression](1-sending-server#enable_wal_shipping_compression) | +| [enable_wdr_snapshot](27-system-performance-snapshot#enable_wdr_snapshot) | +| [enable_xc_maintenance_mode](cm_agent#enable_xc_maintenance_mode) | +| [enable_xlog_prune](2-checkpoints#enable_xlog_prune) | +| [enableSeparationOfDuty](3-operation-audit#enableseparationofduty) | +| [enforce_a_behavior](1-optimizer-method-configuration#enforce_a_behavior) | +| [escape_string_warning](1-compatibility-with-earlier-versions#escape_string_warning) | +| [event_source](1-logging-destination#event_source) | +| [exit_on_error](18-fault-tolerance#exit_on_error) | +| [expected_computing_nodegroup](1-optimizer-method-configuration#expected_computing_nodegroup) | +| [explain_dna_file](4-other-optimizer-options#explain_dna_file) | +| [explain_perf_mode](4-other-optimizer-options#explain_perf_mode) | +| [external_pid_file](2-file-location#external_pid_file) | +| [extra_float_digits](2-zone-and-formatting#extra_float_digits) | +| [failed_login_attempts](2-security-and-authentication#failed_login_attempts) | +| [fast_extend_file_size](6-asynchronous-io-operations#fast_extend_file_size) | +| [fault_mon_timeout](16-lock-management#fault_mon_timeout) | +| [FencedUDFMemoryLimit](33-user-defined-functions#fencedudfmemorylimit) | +| [force_bitmapand](1-optimizer-method-configuration#force_bitmapand) | +| [force_pseudo_codegen_mot](8-mot#force_pseudo_codegen_mot) | +| [force_promote](1-settings#force_promote) | +| [from_collapse_limit](4-other-optimizer-options#from_collapse_limit) | +| [fsync](1-settings#fsync) | +| [full_page_writes](1-settings#full_page_writes) | +| [geqo](3-genetic-query-optimizer#geqo) | +| [geqo_effort](3-genetic-query-optimizer#geqo_effort) | +| [geqo_generations](3-genetic-query-optimizer#geqo_generations) | +| [geqo_pool_size](3-genetic-query-optimizer#geqo_pool_size) | +| [geqo_seed](3-genetic-query-optimizer#geqo_seed) | +| [geqo_selection_bias](3-genetic-query-optimizer#geqo_selection_bias) | +| [geqo_threshold](3-genetic-query-optimizer#geqo_threshold) | +| [gin_fuzzy_search_limit](3-other-default-parameters#gin_fuzzy_search_limit) | +| [gin_pending_list_limit](1-statement-behavior#gin_pending_list_limit) | +| [global_syscache_threshold](global-syscache-parameters#global_syscache_threshold) | +| [gpc_clean_timeout](4-other-optimizer-options#gpc_clean_timeout) | +| [gs_clean_timeout](16-lock-management#gs_clean_timeout) | +| [ha_module_debug](2-primary-server#ha_module_debug) | +| [hadr_max_size_for_xlog_receiver](34-backup-and-restoration#hadr_max_size_for_xlog_receiver) | +| [hashagg_table_size](4-other-optimizer-options#hashagg_table_size) | +| [hba_file](2-file-location#hba_file) | +| [hll_default_log2explicit](29.1-HyperLogLog#hll_default_log2explicit) | +| [hll_default_log2m](29.1-HyperLogLog#hll_default_log2m) | +| [hll_default_log2sparse](29.1-HyperLogLog#hll_default_log2sparse) | +| [hll_duplicate_check](29.1-HyperLogLog#hll_duplicate_check) | +| [hot_standby](3-standby-server#hot_standby) | +| [hot_standby_feedback](3-standby-server#hot_standby_feedback) | +| [ident_file](2-file-location#ident_file) | +| [ignore_checksum_failure](21-developer-options#ignore_checksum_failure) | +| [ignore_system_indexes](21-developer-options#ignore_system_indexes) | +| [incremental_build](cm_agent#incremental_build) | +| [incremental_checkpoint_timeout](2-checkpoints#incremental_checkpoint_timeout) | +| [inplace_upgrade_next_system_object_oids](23-upgrade-parameters#inplace_upgrade_next_system_object_oids) | +| [install_type](cm_server#install_type) | +| [instance_failover_delay_timeout](cm_server#instance_failover_delay_timeout) | +| [instance_heartbeat_timeout](cm_server#instance_heartbeat_timeout) | +| [instance_keep_heartbeat_timeout](cm_server#instance_keep_heartbeat_timeout) | +| [instance_metric_retention_time](13-load-management#instance_metric_retention_time) | +| [instance_phony_dead_restart_interval](cm_server#instance_phony_dead_restart_interval) | +| [instr_rt_percentile_interval](26-query#instr_rt_percentile_interval) | +| [instr_unique_sql_count](26-query#instr_unique_sql_count) | +| [instr_unique_sql_track_type](26-query#instr_unique_sql_track_type) | +| [integer_datetimes](24-miscellaneous-parameters#integer_datetimes) | +| [IntervalStyle](2-zone-and-formatting#intervalstyle) | +| [io_control_unit](13-load-management#io_control_unit) | +| [io_limits](13-load-management#io_limits) | +| [io_priority](13-load-management#io_priority) | +| [isinplaceupgrade](23-upgrade-parameters#isinplaceupgrade) | +| [is_sysadmin](27.1-security-configuration#is_sysadmin) | +| [job_queue_processes](31-scheduled-task#job_queue_processes) | +| [join_collapse_limit](4-other-optimizer-options#join_collapse_limit) | +| [keep_sync_window](2-primary-server#keep_sync_window) | +| [krb_caseins_users](2-security-and-authentication#krb_caseins_users) | +| [krb_server_keyfile](2-security-and-authentication#krb_server_keyfile) | +| [krb_srvname](2-security-and-authentication#krb_srvname) | +| [lastval_supported](2-platform-and-client-compatibility#lastval_supported) | +| [lc_collate](24-miscellaneous-parameters#lc_collate) | +| [lc_ctype](24-miscellaneous-parameters#lc_ctype) | +| [lc_messages](2-zone-and-formatting#lc_messages) | +| [lc_monetary](2-zone-and-formatting#lc_monetary) | +| [lc_numeric](2-zone-and-formatting#lc_numeric) | +| [lc_time](2-zone-and-formatting#lc_time) | +| [listen_addresses](1-connection-settings#listen_addresses) | +| [lo_compat_privileges](1-compatibility-with-earlier-versions#lo_compat_privileges) | +| [local_bind_address](1-connection-settings#local_bind_address) | +| [local_preload_libraries](3-other-default-parameters#local_preload_libraries) | +| [local_syscache_threshold](1-memory#local_syscache_threshold) | +| [lockwait_timeout](16-lock-management#lockwait_timeout) | +| [log_autovacuum_min_duration](14-automatic-vacuuming#log_autovacuum_min_duration) | +| [log_checkpoints](3-logging-content#log_checkpoints) | +| [log_connections](3-logging-content#log_connections) | +| [log_destination](1-logging-destination#log_destination) | +| [log_dir](cm_agent#log_dir) | +| [log_directory](1-logging-destination#log_directory) | +| [log_disconnections](3-logging-content#log_disconnections) | +| [log_duration](3-logging-content#log_duration) | +| [log_error_verbosity](3-logging-content#log_error_verbosity) | +| [log_executor_stats](4-other-optimizer-options#log_executor_stats) | +| [log_file_mode](1-logging-destination#log_file_mode) | +| [log_file_size](cm_agent#log_file_size) | +| [log_filename](1-logging-destination#log_filename) | +| [log_hostname](3-logging-content#log_hostname) | +| [log_line_prefix](3-logging-content#log_line_prefix) | +| [log_lock_waits](3-logging-content#log_lock_waits) | +| [log_max_count](cm_agent#log_max_count) | +| [log_max_size](cm_agent#log_max_size) | +| [log_min_duration_statement](2-logging-time#log_min_duration_statement) | +| [log_min_error_statement](2-logging-time#log_min_error_statement) | +| [log_min_messages](2-logging-time#log_min_messages) | +| [log_pagewriter](21-developer-options#log_pagewriter) | +| [log_parser_stats](4-other-optimizer-options#log_parser_stats) | +| [log_pattern_%s](cm_agent#log_pattern_s) | +| [log_planner_stats](4-other-optimizer-options#log_planner_stats) | +| [log_rotation_age](1-logging-destination#log_rotation_age) | +| [log_rotation_size](1-logging-destination#log_rotation_size) | +| [log_saved_days](cm_agent#log_saved_days) | +| [log_statement](3-logging-content#log_statement) | +| [log_statement_stats](4-other-optimizer-options#log_statement_stats) | +| [log_temp_files](3-logging-content#log_temp_files) | +| [log_threshold_check_interval](cm_agent#log_threshold_check_interval) | +| [log_timezone](3-logging-content#log_timezone) | +| [log_truncate_on_rotation](1-logging-destination#log_truncate_on_rotation) | +| [logging_collector](1-logging-destination#logging_collector) | +| [logging_module](3-logging-content#logging_module) | +| [maintenance_work_mem](1-memory#maintenance_work_mem) | +| [max_active_global_temporary_table](29-global-temporary-table#max_active_global_temporary_table) | +| [max_cached_tuplebufs](1-sending-server#max_cached_tuplebufs) | +| [max_changes_in_memory](1-sending-server#max_changes_in_memory) | +| [max_cn_temp_file_size](18-fault-tolerance#max_cn_temp_file_size) | +| [max_compile_functions](1-statement-behavior#max_compile_functions) | +| [max_concurrent_autonomous_transactions](24-miscellaneous-parameters#max_concurrent_autonomous_transactions) | +| [max_connections](1-connection-settings#max_connections) | +| [max_datastorage_threshold_check](cm_server#max_datastorage_threshold_check) | +| [max_files_per_process](3-kernel-resource-usage#max_files_per_process) | +| [max_function_args](2-platform-and-client-compatibility#max_function_args) | +| [max_identifier_length](24-miscellaneous-parameters#max_identifier_length) | +| [max_index_keys](24-miscellaneous-parameters#max_index_keys) | +| [max_inner_tool_connections](1-connection-settings#max_inner_tool_connections) | +| [max_io_capacity](5-background-writer#max_io_capacity) | +| [max_loaded_cudesc](1-memory#max_loaded_cudesc) | +| [max_locks_per_transaction](16-lock-management#max_locks_per_transaction) | +| [max_logical_replication_workers](3-standby-server#max_logical_replication_workers) | +| [max_pred_locks_per_transaction](16-lock-management#max_pred_locks_per_transaction) | +| [max_prepared_transactions](1-memory#max_prepared_transactions) | +| [max_process_memory](1-memory#max_process_memory) | +| [max_query_retry_times](18-fault-tolerance#max_query_retry_times) | +| [max_recursive_times](1-optimizer-method-configuration#max_recursive_times) | +| [max_redo_log_size](2-checkpoints#max_redo_log_size) | +| [max_replication_slots](1-sending-server#max_replication_slots) | +| [max_size_for_xlog_prune](2-checkpoints#max_size_for_xlog_prune) | +| [max_stack_depth](1-memory#max_stack_depth) | +| [max_standby_archive_delay](3-standby-server#max_standby_archive_delay) | +| [max_standby_streaming_delay](3-standby-server#max_standby_streaming_delay) | +| [max_undo_workers](38-rollback-parameters#max_undo_workers) | +| [max_user_defined_exception](21-developer-options#max_user_defined_exception) | +| [max_wal_senders](1-sending-server#max_wal_senders) | +| [memory_detail_tracking](13-load-management#memory_detail_tracking) | +| [memory_fault_percent](13-load-management#memory_fault_percent) | +| [memory_tracking_mode](13-load-management#memory_tracking_mode) | +| [memorypool_enable](1-memory#memorypool_enable) | +| [memorypool_size](1-memory#memorypool_size) | +| [minimum_pool_size](19-connection-pool-parameters#minimum_pool_size) | +| [modify_initial_password](2-security-and-authentication#modify_initial_password) | +| [most_available_sync](2-primary-server#most_available_sync) | +| [mot_allow_index_on_nullable_column](8-mot#mot_allow_index_on_nullable_column) | +| [mot_config_file](8-mot#mot_config_file) | +| [ngram_gram_size](4-other-optimizer-options#ngram_gram_size) | +| [ngram_grapsymbol_ignore](4-other-optimizer-options#ngram_grapsymbol_ignore) | +| [ngram_punctuation_ignore](4-other-optimizer-options#ngram_punctuation_ignore) | +| [nls_timestamp_format](2-platform-and-client-compatibility#nls_timestamp_format) | +| [num_internal_lock_partitions](16-lock-management#num_internal_lock_partitions) | +| [numa_distribute_mode](21-developer-options#numa_distribute_mode) | +| [omit_encoding_error](18-fault-tolerance#omit_encoding_error) | +| [operation_mode](34-backup-and-restoration#operation_mode) | +| [opfusion_debug_mode](3-logging-content#opfusion_debug_mode) | +| [pagewriter_sleep](5-background-writer#pagewriter_sleep) | +| [pagewriter_thread_num](5-background-writer#pagewriter_thread_num) | +| [partition_lock_upgrade_timeout](16-lock-management#partition_lock_upgrade_timeout) | +| [password_effect_time](2-security-and-authentication#password_effect_time) | +| [password_encryption_type](2-security-and-authentication#password_encryption_type) | +| [password_lock_time](2-security-and-authentication#password_lock_time) | +| [password_max_length](2-security-and-authentication#password_max_length) | +| [password_min_digital](2-security-and-authentication#password_min_digital) | +| [password_min_length](2-security-and-authentication#password_min_length) | +| [password_min_lowercase](2-security-and-authentication#password_min_lowercase) | +| [password_min_special](2-security-and-authentication#password_min_special) | +| [password_min_uppercase](2-security-and-authentication#password_min_uppercase) | +| [password_notify_time](2-security-and-authentication#password_notify_time) | +| [password_policy](2-security-and-authentication#password_policy) | +| [password_reuse_max](2-security-and-authentication#password_reuse_max) | +| [password_reuse_time](2-security-and-authentication#password_reuse_time) | +| [percentile](26-query#percentile) | +| [pgxc_node_name](20-MogDB-transaction#pgxc_node_name) | +| [phony_dead_effective_time](cm_server#phony_dead_effective_time) | +| [plan_cache_mode](4-other-optimizer-options#plan_cache_mode) | +| [plan_mode_seed](4-other-optimizer-options#plan_mode_seed) | +| [pldebugger_timeout](21-developer-options#pldebugger_timeout) | +| [pljava_vmoptions](33-user-defined-functions#pljava_vmoptions) | +| [plog_merge_age](2-logging-time#plog_merge_age) | +| [plpgsql.variable_conflict](2-platform-and-client-compatibility#plpgsqlvariable_conflict) | +| [plsql_show_all_error](21-developer-options#plsql_show_all_error) | +| [pooler_maximum_idle_time](19-connection-pool-parameters#pooler_maximum_idle_time) | +| [port](1-connection-settings#port) | +| [post_auth_delay](21-developer-options#post_auth_delay) | +| [pre_auth_delay](21-developer-options#pre_auth_delay) | +| [prefetch_quantity](6-asynchronous-io-operations#prefetch_quantity) | +| [primary_slotname](3-standby-server#primary_slotname) | +| [process_cpu_affinity](cm_agent#process_cpu_affinity) | +| [psort_work_mem](1-memory#psort_work_mem) | +| [qrw_inlist2join_optmode](1-optimizer-method-configuration#qrw_inlist2join_optmode) | +| [query_band](13-load-management#query_band) | +| [query_dop](4-other-optimizer-options#query_dop) | +| [query_max_mem](1-memory#query_max_mem) | +| [query_mem](1-memory#query_mem) | +| [quote_all_identifiers](1-compatibility-with-earlier-versions#quote_all_identifiers) | +| [random_page_cost](2-optimizer-cost-constants#random_page_cost) | +| [recovery_max_workers](3-log-replay#recovery_max_workers) | +| [recovery_min_apply_delay](3-log-replay#recovery_min_apply_delay) | +| [recovery_parallelism](3-log-replay#recovery_parallelism) | +| [recovery_parse_workers](3-log-replay#recovery_parse_workers) | +| [recovery_redo_workers](3-log-replay#recovery_redo_workers) | +| [recovery_time_target](3-log-replay#recovery_time_target) | +| [recyclebin_retention_time](37-flashback#recyclebin_retention_time) | +| [redo_bind_cpu_attr](3-log-replay#redo_bind_cpu_attr) | +| [remote_read_mode](18-fault-tolerance#remote_read_mode) | +| [remotetype](21-developer-options#remotetype) | +| [replconninfoN](1-sending-server#replconninfon) | +| [replication_type](20-MogDB-transaction#replication_type) | +| [require_ssl](2-security-and-authentication#require_ssl) | +| [reserve_space_for_nullable_atts](24-miscellaneous-parameters#reserve_space_for_nullable_atts) | +| [resource_track_cost](13-load-management#resource_track_cost) | +| [resource_track_duration](13-load-management#resource_track_duration) | +| [resource_track_level](13-load-management#resource_track_level) | +| [resource_track_log](21-developer-options#resource_track_log) | +| [restart_after_crash](18-fault-tolerance#restart_after_crash) | +| [retry_ecode_list](18-fault-tolerance#retry_ecode_list) | +| [rewrite_rule](4-other-optimizer-options#rewrite_rule) | +| [schedule_splits_threshold](39-reserved-parameters) | +| [search_path](1-statement-behavior#search_path) | +| [security_mode](cm_agent#security_mode) | +| [segment_buffers](1-memory#segment_buffers) | +| [segment_size](24-miscellaneous-parameters#segment_size) | +| [seq_page_cost](2-optimizer-cost-constants#seq_page_cost) | +| [server_encoding](24-miscellaneous-parameters#server_encoding) | +| [server_version](24-miscellaneous-parameters#server_version) | +| [server_version_num](24-miscellaneous-parameters#server_version_num) | +| [session_authorization](2-security-and-authentication#session_authorization) | +| [session_history_memory](13-load-management#session_history_memory) | +| [session_replication_role](1-statement-behavior#session_replication_role) | +| [session_respool](13-load-management#session_respool) | +| [session_statistics_memory](13-load-management#session_statistics_memory) | +| [session_timeout](2-security-and-authentication#session_timeout) | +| [shared_buffers](1-memory#shared_buffers) | +| [shared_preload_libraries](3-kernel-resource-usage#shared_preload_libraries) | +| [show_acce_estimate_detail](21-developer-options#show_acce_estimate_detail) | +| [skew_option](1-optimizer-method-configuration#skew_option) | +| [sql_beta_feature](4-other-optimizer-options#sql_beta_feature) | +| [sql_compatibility](2-platform-and-client-compatibility#sql_compatibility) | +| [sql_inheritance](1-compatibility-with-earlier-versions#sql_inheritance) | +| [sql_use_spacelimit](2-disk-space#sql_use_spacelimit) | +| [ssl](2-security-and-authentication#ssl) | +| [ssl_ca_file](2-security-and-authentication#ssl_ca_file) | +| [ssl_cert_expire_alert_threshold](cm_server#ssl_cert_expire_alert_threshold) | +| [ssl_cert_expire_check_interval](cm_server#ssl_cert_expire_check_interval) | +| [ssl_cert_file](2-security-and-authentication#ssl_cert_file) | +| [ssl_ciphers](2-security-and-authentication#ssl_ciphers) | +| [ssl_crl_file](2-security-and-authentication#ssl_crl_file) | +| [ssl_key_file](2-security-and-authentication#ssl_key_file) | +| [ssl_renegotiation_limit](2-security-and-authentication#ssl_renegotiation_limit) | +| [standard_conforming_strings](1-compatibility-with-earlier-versions#standard_conforming_strings) | +| [standby_shared_buffers_fract](1-memory#standby_shared_buffers_fraction) | +| [statement_timeout](1-statement-behavior#statement_timeout) | +| [stats_temp_directory](1-query-and-index-statistics-collector#stats_temp_directory) | +| [string_hash_compatible](21-developer-options#string_hash_compatible) | +| [support_batch_bind](21-developer-options#support_batch_bind) | +| [support_extended_features](2-platform-and-client-compatibility#support_extended_features) | +| [switch_rto](cm_server#switch_rto) | +| [sync_config_strategy](2-primary-server#sync_config_strategy) | +| [synchronize_seqscans](1-compatibility-with-earlier-versions#synchronize_seqscans) | +| [synchronous_commit](1-settings#synchronous_commit) | +| [synchronous_standby_names](2-primary-server#synchronous_standby_names) | +| [sysadmin_reserved_connection](1-connection-settings#sysadmin_reserved_connections) | +| [syslog_facility](1-logging-destination#syslog_facility) | +| [syslog_ident](1-logging-destination#syslog_ident) | +| [table_skewness_warning_rows](11-alarm-detection#table_skewness_warning_rows) | +| [table_skewness_warning_threshold](11-alarm-detection#table_skewness_warning_threshold) | +| [tcp_keepalives_count](3-communication-library-parameters#tcp_keepalives_count) | +| [tcp_keepalives_idle](3-communication-library-parameters#tcp_keepalives_idle) | +| [tcp_keepalives_interval](3-communication-library-parameters#tcp_keepalives_interval) | +| [td_compatible_truncation](2-platform-and-client-compatibility#td_compatible_truncation) | +| [tde_cmk_id](27.1-security-configuration#tde_cmk_id) | +| [temp_buffers](1-memory#temp_buffers) | +| [temp_file_limit](2-disk-space#temp_file_limit) | +| [temp_tablespaces](1-statement-behavior#temp_tablespaces) | +| [thread_count](cm_server#thread_count) | +| [thread_pool_attr](32-thread-pool#thread_pool_attr) | +| [TimeZone](2-zone-and-formatting#timezone) | +| [timezone_abbreviations](2-zone-and-formatting#timezone_abbreviations) | +| [topsql_retention_time](13-load-management#topsql_retention_time) | +| [trace_notify](21-developer-options#trace_notify) | +| [trace_recovery_messages](21-developer-options#trace_recovery_messages) | +| [trace_sort](21-developer-options#trace_sort) | +| [track_activities](1-query-and-index-statistics-collector#track_activities) | +| [track_activity_query_size](1-query-and-index-statistics-collector#track_activity_query_size) | +| [track_counts](1-query-and-index-statistics-collector#track_counts) | +| [track_functions](1-query-and-index-statistics-collector#track_functions) | +| [track_io_timing](1-query-and-index-statistics-collector#track_io_timing) | +| [track_sql_count](1-query-and-index-statistics-collector#track_sql_count) | +| [track_stmt_details_size](26-query#track_stmt_details_size) | +| [track_stmt_retention_time](26-query#track_stmt_retention_time) | +| [track_stmt_session_slot](26-query#track_stmt_session_slot) | +| [track_stmt_stat_level](26-query#track_stmt_stat_level) | +| [track_thread_wait_status_interval](1-query-and-index-statistics-collector#track_thread_wait_status_interval) | +| [transaction_deferrable](20-MogDB-transaction#transaction_deferrable) | +| [transaction_isolation](20-MogDB-transaction#transaction_isolation) | +| [transaction_pending_time](13-load-management#transaction_pending_time) | +| [transaction_read_only](20-MogDB-transaction#transaction_read_only) | +| [transform_null_equals](2-platform-and-client-compatibility#transform_null_equals) | +| [transparent_encrypt_kms_region](24-miscellaneous-parameters#transparent_encrypt_kms_region) | +| [transparent_encrypt_kms_url](24-miscellaneous-parameters#transparent_encrypt_kms_url) | +| [transparent_encrypted_string](24-miscellaneous-parameters#transparent_encrypted_string) | +| [try_vector_engine_strategy](1-optimizer-method-configuration#try_vector_engine_strategy) | +| [udf_memory_limit](33-user-defined-functions#udf_memory_limit) | +| [UDFWorkerMemHardLimit](33-user-defined-functions#udfworkermemhardlimit) | +| [uncontrolled_memory_context](1-memory#uncontrolled_memory_context) | +| [undo_limit_size_per_transaction](35-undo#undo_limit_size_per_transaction) | +| [undo_retention_time](37-flashback#undo_retention_time) | +| [undo_space_limit_size](35-undo#undo_space_limit_size) | +| [undo_zone_count](39-reserved-parameters) | +| [unix_socket_directory](1-connection-settings#unix_socket_directory) | +| [unix_socket_group](1-connection-settings#unix_socket_group) | +| [unix_socket_permissions](1-connection-settings#unix_socket_permissions) | +| [update_lockwait_timeout](16-lock-management#update_lockwait_timeout) | +| [upgrade_from](cm_agent#upgrade_from) | +| [upgrade_mode](23-upgrade-parameters#upgrade_mode) | +| [use_elastic_search](27.1-security-configuration#use_elastic_search) | +| [use_workload_manager](13-load-management#use_workload_manager) | +| [user_metric_retention_time](13-load-management#user_metric_retention_time) | +| [ustore_attr](24-miscellaneous-parameters#ustore_attr) | +| [vacuum_cost_delay](4-cost-based-vacuum-delay#vacuum_cost_delay) | +| [vacuum_cost_limit](4-cost-based-vacuum-delay#vacuum_cost_limit) | +| [vacuum_cost_page_dirty](4-cost-based-vacuum-delay#vacuum_cost_page_dirty) | +| [vacuum_cost_page_hit](4-cost-based-vacuum-delay#vacuum_cost_page_hit) | +| [vacuum_cost_page_miss](4-cost-based-vacuum-delay#vacuum_cost_page_miss) | +| [vacuum_defer_cleanup_age](2-primary-server#vacuum_defer_cleanup_age) | +| [vacuum_freeze_min_age](1-statement-behavior#vacuum_freeze_min_age) | +| [vacuum_freeze_table_age](1-statement-behavior#vacuum_freeze_table_age) | +| [vacuum_gtt_defer_check_age](29-global-temporary-table#vacuum_gtt_defer_check_age) | +| [version_retention_age](37-flashback#version_retention_age) | +| [wait_dummy_time](2-primary-server#wait_dummy_time) | +| [wal_block_size](1-settings#wal_block_size) | +| [wal_buffers](1-settings#wal_buffers) | +| [wal_file_init_num](1-settings#wal_file_init_num) | +| [wal_flush_delay](1-settings#wal_flush_delay) | +| [wal_flush_timeout](1-settings#wal_flush_timeout) | +| [wal_keep_segments](1-sending-server#wal_keep_segments) | +| [wal_level](1-settings#wal_level) | +| [wal_log_hints](1-settings#wal_log_hints) | +| [wal_receiver_buffer_size](3-standby-server#wal_receiver_buffer_size) | +| [wal_receiver_connect_retries](3-standby-server#wal_receiver_connect_retries) | +| [wal_receiver_connect_timeout](3-standby-server#wal_receiver_connect_timeout) | +| [wal_receiver_status_interval](3-standby-server#wal_receiver_status_interval) | +| [wal_receiver_timeout](3-standby-server#wal_receiver_timeout) | +| [wal_segment_size](1-settings#wal_segment_size) | +| [wal_sender_timeout](1-sending-server#wal_sender_timeout) | +| [wal_sync_method](1-settings#wal_sync_method) | +| [wal_writer_delay](1-settings#wal_writer_delay) | +| [walsender_max_send_size](2-primary-server#walsender_max_send_size) | +| [walwriter_cpu_bind](1-settings#walwriter_cpu_bind) | +| [walwriter_sleep_threshold](1-settings#walwriter_sleep_threshold) | +| [wdr_snapshot_interval](27-system-performance-snapshot#wdr_snapshot_interval) | +| [wdr_snapshot_query_timeout](27-system-performance-snapshot#wdr_snapshot_query_timeout) | +| [wdr_snapshot_retention_days](27-system-performance-snapshot#wdr_snapshot_retention_days) | +| [work_mem](1-memory#work_mem) | +| [xc_maintenance_mode](20-MogDB-transaction#xc_maintenance_mode) | +| [xloginsert_locks](16-lock-management#xloginsert_locks) | +| [xmlbinary](1-statement-behavior#xmlbinary) | +| [xmloption](1-statement-behavior#xmloption) | +| [zero_damaged_pages](21-developer-options#zero_damaged_pages) | diff --git a/product/zh/docs-mogdb/v3.0/toc.md b/product/zh/docs-mogdb/v3.0/toc.md index e1ef00d5..e9bc55da 100644 --- a/product/zh/docs-mogdb/v3.0/toc.md +++ b/product/zh/docs-mogdb/v3.0/toc.md @@ -1065,6 +1065,7 @@ + [扩展语法](/reference-guide/sql-reference/13-appendix/3-extended-syntax.md) + GUC参数说明 + [GUC使用说明](/reference-guide/guc-parameters/1-guc-parameter-usage.md) + + [GUC参数列表](/reference-guide/guc-parameters/guc-parameter-list.md) + [文件位置](/reference-guide/guc-parameters/2-file-location.md) + 连接和认证 + [连接设置](/reference-guide/guc-parameters/3-connection-and-authentication/1-connection-settings.md) diff --git a/product/zh/docs-mogdb/v3.0/toc_parameters-and-tools.md b/product/zh/docs-mogdb/v3.0/toc_parameters-and-tools.md index 27264af4..3023ef00 100644 --- a/product/zh/docs-mogdb/v3.0/toc_parameters-and-tools.md +++ b/product/zh/docs-mogdb/v3.0/toc_parameters-and-tools.md @@ -7,6 +7,7 @@ + GUC参数说明 + [GUC使用说明](./reference-guide/guc-parameters/1-guc-parameter-usage.md) + + [GUC参数列表](./reference-guide/guc-parameters/guc-parameter-list.md) + [文件位置](./reference-guide/guc-parameters/2-file-location.md) + 连接和认证 + [连接设置](./reference-guide/guc-parameters/3-connection-and-authentication/1-connection-settings.md) -- Gitee From 114909524189a2d60ad418600ea4ce3c807de38c Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Thu, 26 May 2022 16:19:41 +0800 Subject: [PATCH 3/5] fix(mogdb):fix CREATE PACKAGE --- .../sql-syntax/51.2-CREATE-PACKAGE.md | 6 ++--- .../sql-syntax/51.2-CREATE-PACKAGE.md | 6 ++--- .../sql-syntax/CREATE-PACKAGE.md | 24 ++++++++++++++----- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/51.2-CREATE-PACKAGE.md b/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/51.2-CREATE-PACKAGE.md index 8b0c260b..d72aae03 100644 --- a/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/51.2-CREATE-PACKAGE.md +++ b/product/en/docs-mogdb/v2.1/reference-guide/sql-syntax/51.2-CREATE-PACKAGE.md @@ -33,11 +33,11 @@ date: 2021-11-01 - **CREATE PACKAGE SPECIFICATION** ```ebnf+diagram - CreatePackage ::= CREATE [ OR REPLACE ] PACKAGE [ schema ] package_name + CreatePackage ::= CREATE [ OR REPLACE ] PACKAGE [ schema'.' ] package_name [ invoker_rights_clause ] { IS | AS } item_list_1 END package_name; ``` - invoker_rights_clause can be declared as AUTHID DEFINER or AUTHID INVOKER, which indicate the definer permission and invoker permission, respectively. + invoker_rights_clause can be declared as AUTHID DEFINER or AUTHID CURRENT_USER, which indicate the definer permission and invoker permission, respectively. item_list_1 can be a declared variable, stored procedure, or function. The package specification declares public variables, functions, and exceptions in a package, which can be invoked by external functions or stored procedures. It can only declare stored procedures and functions but cannot define them. @@ -45,7 +45,7 @@ date: 2021-11-01 - **CREATE PACKAGE BODY** ```ebnf+diagram - CreatePackageBody ::= CREATE [ OR REPLACE ] PACKAGE BODY [ schema ] package_name + CreatePackageBody ::= CREATE [ OR REPLACE ] PACKAGE BODY [ schema'.' ] package_name { IS | AS } declare_section [ initialize_section ] END package_name; ``` diff --git a/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/51.2-CREATE-PACKAGE.md b/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/51.2-CREATE-PACKAGE.md index f21990f9..2bce34d5 100644 --- a/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/51.2-CREATE-PACKAGE.md +++ b/product/zh/docs-mogdb/v2.1/reference-guide/sql-syntax/51.2-CREATE-PACKAGE.md @@ -33,11 +33,11 @@ date: 2021-11-01 - CREATE PACKAGE SPECIFICATION语法格式 ```ebnf+diagram - CreatePackage ::= CREATE [ OR REPLACE ] PACKAGE [ schema ] package_name + CreatePackage ::= CREATE [ OR REPLACE ] PACKAGE [ schema'.' ] package_name [ invoker_rights_clause ] { IS | AS } item_list_1 END package_name; ``` - invoker_rights_clause可以被声明为AUTHID DEFINER或者AUTHID INVOKER,分别为定义者权限和调用者权限。 + invoker_rights_clause可以被声明为AUTHID DEFINER或者AUTHID CURRENT_USER,分别为定义者权限和调用者权限。 item_list_1可以为声明的变量或者存储过程以及函数。 PACKAGE SPECIFICATION(包规格)声明了包内的公有变量、函数、异常等,可以被外部函数或者存储过程调用。在PACKAGE SPECIFICATION中只能声明存储过程、函数,不能定义存储过程或者函数。 @@ -45,7 +45,7 @@ date: 2021-11-01 - CREATE PACKAGE BODY语法格式。 ```ebnf+diagram - CreatePackageBody ::= CREATE [ OR REPLACE ] PACKAGE BODY [ schema ] package_name + CreatePackageBody ::= CREATE [ OR REPLACE ] PACKAGE BODY [ schema'.' ] package_name { IS | AS } declare_section [ initialize_section ] END package_name; ``` diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/CREATE-PACKAGE.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/CREATE-PACKAGE.md index 3e155612..ef9d9617 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/CREATE-PACKAGE.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/CREATE-PACKAGE.md @@ -35,23 +35,23 @@ date: 2021-11-01 - CREATE PACKAGE SPECIFICATION语法格式 ```ebnf+diagram - CreatePackage ::= CREATE [ OR REPLACE ] PACKAGE [ schema ] package_name + CreatePackage ::= CREATE [ OR REPLACE ] PACKAGE [ schema'.' ] package_name [ invoker_rights_clause ] { IS | AS } item_list_1 END package_name; ``` - invoker_rights_clause可以被声明为AUTHID DEFINER或者AUTHID INVOKER,分别为定义者权限和调用者权限。 + invoker_rights_clause可以被声明为AUTHID DEFINER或者AUTHID CURRENT_USER,分别为定义者权限和调用者权限。 item_list_1可以为声明的变量或者存储过程以及函数。 - PACKAGE SPECIFICATION(包规格)声明了包内的公有变量、函数、异常等,可以被外部函数或者存储过程调用。在PACKAGE SPECIFICATION中只能声明存储过程、函数,不能定义存储过程或者函数。 + PACKAGE SPECIFICATION(包规格)声明了包内的公有变量、函数、异常等,可以被外部函数或者存储过程调用。在PACKAGE SPECIFICATION中只能声明存储过程、函数,不能定义存储过程或者函数。 - CREATE PACKAGE BODY语法格式。 ```ebnf+diagram - CreatePackageBody ::= CREATE [ OR REPLACE ] PACKAGE BODY [ schema ] package_name + CreatePackageBody ::= CREATE [ OR REPLACE ] PACKAGE BODY [ schema'.' ] package_name { IS | AS } declare_section [ initialize_section ] END package_name; ``` - PACKAGE BODY(包体内)定义了包的私有变量、函数等。如果变量或者函数没有在PACKAGE SPECIFICATION中声明过,那么这个变量或者函数则为私有变量或者函数。 + PACKAGE BODY(包体内)定义了包的私有变量、函数等。如果变量或者函数没有在PACKAGE SPECIFICATION中声明过,那么这个变量或者函数则为私有变量或者函数。 PACKAGE BODY也可以声明实例化部分,用来初始化package,详见示例。 @@ -92,6 +92,18 @@ date: 2021-11-01 - ALTER PACKAGE OWNER示例 ```sql - ALTER PACKAGE emp_bonus OWNER TO omm; --将PACKAGE emp_bonus的所属者改为omm + ALTER PACKAGE emp_bonus OWNER TO omm; ``` + +- 调用PACKAGE示例 + + ```sql + call emp_bonus.testpro1(1); --使用call调用package存储过程 + select emp_bonus.testpro1(1); --使用select调用package存储过程 + --匿名块里调用package存储过程 + begin + emp_bonus.testpro1(1); + end; + / + ``` \ No newline at end of file -- Gitee From 08f6aa8531b3b2072e78291bb4e404340ff3cb3e Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Thu, 26 May 2022 16:34:25 +0800 Subject: [PATCH 4/5] fix(mogdb):fix manually installation --- .../docs-mogdb/v2.1/installation-guide/manual-installation.md | 4 ++-- .../docs-mogdb/v3.0/installation-guide/manual-installation.md | 4 ++-- .../docs-mogdb/v2.1/installation-guide/manual-installation.md | 4 ++-- .../docs-mogdb/v3.0/installation-guide/manual-installation.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/product/en/docs-mogdb/v2.1/installation-guide/manual-installation.md b/product/en/docs-mogdb/v2.1/installation-guide/manual-installation.md index 871861f4..075ea010 100644 --- a/product/en/docs-mogdb/v2.1/installation-guide/manual-installation.md +++ b/product/en/docs-mogdb/v2.1/installation-guide/manual-installation.md @@ -234,10 +234,10 @@ c. Operate with the cascaded database. source /home/omm/.bashrc ``` -- Upload configuration files of the standby database to the standby database. +- Upload configuration files of the standby database to the cascaded database. ```bash - scp /opt/mogdb/data/pg_hba.conf /opt/mogdb/data/postgresql.conf 172.16.0.245:/opt/mogdb/data/ + scp /opt/mogdb/data/pg_hba.conf /opt/mogdb/data/postgresql.conf 172.16.0.127:/opt/mogdb/data/ ``` - Configure the connection. diff --git a/product/en/docs-mogdb/v3.0/installation-guide/manual-installation.md b/product/en/docs-mogdb/v3.0/installation-guide/manual-installation.md index 871861f4..075ea010 100644 --- a/product/en/docs-mogdb/v3.0/installation-guide/manual-installation.md +++ b/product/en/docs-mogdb/v3.0/installation-guide/manual-installation.md @@ -234,10 +234,10 @@ c. Operate with the cascaded database. source /home/omm/.bashrc ``` -- Upload configuration files of the standby database to the standby database. +- Upload configuration files of the standby database to the cascaded database. ```bash - scp /opt/mogdb/data/pg_hba.conf /opt/mogdb/data/postgresql.conf 172.16.0.245:/opt/mogdb/data/ + scp /opt/mogdb/data/pg_hba.conf /opt/mogdb/data/postgresql.conf 172.16.0.127:/opt/mogdb/data/ ``` - Configure the connection. diff --git a/product/zh/docs-mogdb/v2.1/installation-guide/manual-installation.md b/product/zh/docs-mogdb/v2.1/installation-guide/manual-installation.md index 0957ba77..c047e41f 100644 --- a/product/zh/docs-mogdb/v2.1/installation-guide/manual-installation.md +++ b/product/zh/docs-mogdb/v2.1/installation-guide/manual-installation.md @@ -234,10 +234,10 @@ date: 2021-10-14 source /home/omm/.bashrc ``` -- 将备库的配置文件传到备库 +- 将备库的配置文件传到级联库 ```bash - scp /opt/mogdb/data/pg_hba.conf /opt/mogdb/data/postgresql.conf 172.16.0.245:/opt/mogdb/data/ + scp /opt/mogdb/data/pg_hba.conf /opt/mogdb/data/postgresql.conf 172.16.0.127:/opt/mogdb/data/ ``` - 配置连接通道 diff --git a/product/zh/docs-mogdb/v3.0/installation-guide/manual-installation.md b/product/zh/docs-mogdb/v3.0/installation-guide/manual-installation.md index 2230432e..041ef0c1 100644 --- a/product/zh/docs-mogdb/v3.0/installation-guide/manual-installation.md +++ b/product/zh/docs-mogdb/v3.0/installation-guide/manual-installation.md @@ -234,10 +234,10 @@ date: 2021-10-14 source /home/omm/.bashrc ``` -- 将备库的配置文件传到备库 +- 将备库的配置文件传到级联库 ```bash - scp /opt/mogdb/data/pg_hba.conf /opt/mogdb/data/postgresql.conf 172.16.0.245:/opt/mogdb/data/ + scp /opt/mogdb/data/pg_hba.conf /opt/mogdb/data/postgresql.conf 172.16.0.127:/opt/mogdb/data/ ``` - 配置连接通道 -- Gitee From f8f0ab04d6478b80204f0180a5619d42538246f6 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Thu, 26 May 2022 17:20:44 +0800 Subject: [PATCH 5/5] update(mogdb):sql reference --- .../4-expressions/1-simple-expressions.md | 2 +- .../4-expressions/2-condition-expressions.md | 4 +- .../1-type-conversion-overview.md | 2 +- .../5-union-case-and-related-constructs.md | 80 +++++++++++++++++++ .../1-introduction/3-basic-text-matching.md | 2 +- .../7-configuration-examples.md | 2 +- .../sql-reference/9-ddl-syntax-overview.md | 1 + 7 files changed, 87 insertions(+), 6 deletions(-) diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/4-expressions/1-simple-expressions.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/4-expressions/1-simple-expressions.md index 53fd89c4..71269c96 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/4-expressions/1-simple-expressions.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/4-expressions/1-simple-expressions.md @@ -61,7 +61,7 @@ date: 2021-05-17 ROWNUM是一个伪列,它返回一个数字,表示从查询中获取结果的行编号。第一行的ROWNUM为1,第二行的为2,依此类推。 -ROWNUM的返回类型为BIGINT。ROWNUM可以用于限制查询返回的总行数,例如下面语句限制查询从Students表中返回最多10条记录。 +ROWNUM的返回类型为numeric。ROWNUM可以用于限制查询返回的总行数,例如下面语句限制查询从Students表中返回最多10条记录。 ```sql select * from Students where rownum <= 10; diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/4-expressions/2-condition-expressions.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/4-expressions/2-condition-expressions.md index b3cb9264..895a8aca 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/4-expressions/2-condition-expressions.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/4-expressions/2-condition-expressions.md @@ -63,7 +63,7 @@ date: 2021-05-17 将表达式base_expr与后面的每个compare(n) 进行比较,如果匹配返回相应的value(n)。如果没有发生匹配,则返回default。 - 示例请参见**条件表达式函数**。 + 示例请参见[条件表达式函数](22-conditional-expressions-functions)。 ```sql mogdb=# SELECT DECODE('A','A',1,'B',2,0); @@ -193,7 +193,7 @@ date: 2021-05-17 (1 row) ``` - 示例请参见**条件表达式函数**。 + 示例请参见[条件表达式函数](22-conditional-expressions-functions)。 - NVL diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/5-type-conversion/1-type-conversion-overview.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/5-type-conversion/1-type-conversion-overview.md index b1edf1db..b94bc7f5 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/5-type-conversion/1-type-conversion-overview.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/5-type-conversion/1-type-conversion-overview.md @@ -41,7 +41,7 @@ mogdb=# SELECT text 'Origin' AS "label", point '(0,0)' AS "value"; 因为联合SELECT语句中的所有查询结果必须在一列里显示出来,所以每个SELECT子句中的元素类型必须相互匹配并转换成一个统一类型。类似地,一个CASE构造的结果表达式必须转换成统一的类型,这样整个case表达式会有一个统一的输出类型。同样的要求也存在于ARRAY构造以及GREATEST和LEAST函数中。 -系统表pg_cast存储了有关数据类型之间的转换关系以及如何执行这些转换的信息。 +系统表pg_cast存储了有关数据类型之间的转换关系以及如何执行这些转换的信息。详细信息请参见[PG_CAST](PG_CAST)。 语义分析阶段会决定表达式的返回值类型并选择适当的转换行为。数据类型的基本类型分类,包括:Boolean,numeric,string,bitstring,datetime,timespan,geometric和network。每种类型都有一种或多种首选类型用于解决类型选择的问题。根据首选类型和可用的隐含转换,就可能保证有歧义的表达式(那些有多个候选解析方案的)得到有效的方式解决。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/5-type-conversion/5-union-case-and-related-constructs.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/5-type-conversion/5-union-case-and-related-constructs.md index 4ea7771e..2fea7dbb 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/5-type-conversion/5-union-case-and-related-constructs.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/5-type-conversion/5-union-case-and-related-constructs.md @@ -34,6 +34,32 @@ SQL UNION构造必须把那些可能不太相似的类型匹配起来成为一 - 如果输入类型是同一个类型范畴,则选择该类型的优先级较高的类型。 - 把所有输入转换为所选的类型。如果从给定的输入到所选的类型没有隐式转换则失败。 +## 对于case,在ORA兼容模式下的处理 + +decode(expr, search1, result1, search2, result2, …, defresult),也即 case expr when search1 then result1 when search2 then result2 else defresult end; 在ORA兼容模式下的处理,将整个表达式最终的返回值类型定为result1的数据类型,或者与result1同类型范畴的更高精度的数据类型。(例如,numeric与int同属数值类型范畴,但numeric比int精度要高,具有更高优先级) + +- 将result1的数据类型置为最终的返回值类型preferType,其所属类型范畴为preferCategory。 +- 依次考虑result2、result3直至defresult的数据类型。如果其类型范畴也是preferCategory,即与result1具有相同的类型范畴,则判断其精度(优先级)是否高于preferType,如果高于,则将preferType更新为更高精度的数据类型;如果其类型范畴不是preferCategory,则判断其数据类型是否可以隐式转换为preferType,不可以则报错。 +- 将最终preferType记录的数据类型作为整个表达式最终的返回值类型;表达式的结果向此类型进行隐式转换。 + +注1: + +为了兼容一种特殊情况,即表示了超大数字的字符类型向数值类型转换的情况,例如select decode(1, 2, 2, “53465465676465454657567678676”),大数超过了bigint、double等的表示范围。所以,当result1的类型范畴为数值类型时,将返回值的类型直接置为numeric,以兼容此种特殊情况。 + +注2: + +数值类型的优先级排序:numeric>float8>float4>int8>int4>int2>int1 + +字符类型的优先级排序:text>varchar=nvarchar2>bpchar>char + +日期类型的优先级排序:timestamptz>timestamp>smalldatetime>date>abstime>timetz>time + +日期跨度类型的优先级排序:interval>tinterval>reltime + +注3: + +ORA兼容模式,开启 set sql_beta_feature = 'a_style_coerce'; 参数的情况下,所支持的隐式类型转换见下图,\代表不需要转换,yes表示支持,空白表示不支持。 + ## 示例 示例1:Union中的待定类型解析。这里,unknown类型文本'b'将被解析成text类型。 @@ -123,3 +149,57 @@ td_1=# \c mogdb mogdb=# DROP DATABASE a_1; mogdb=# DROP DATABASE td_1; ``` + +示例5:ORA模式下,将整个表达式最终的返回值类型定为result1的数据类型,或者与result1同类型范畴的更高精度的数据类型。 + +```sql +--在ORA模式下,创建ORA兼容模式的数据库ora_1。 +MogDB=# CREATE DATABASE ora_1 dbcompatibility = 'A'; + +--切换数据库为ora_1。 +MogDB=# \c ora_1 + +--开启Decode兼容性参数。 +set sql_beta_feature='a_style_coerce'; + +--创建表t1。 +ora_1=# CREATE TABLE t1(c_int int, c_float8 float8, c_char char(10), c_text text, c_date date); + +--插入数据。 +ora_1=# INSERT INTO t1 VALUES(1, 2, '3', '4', date '12-10-2010'); + +--result1类型为char,defresult类型为text,text精度更高,返回值的类型由char更新为text。 +ora_1=# SELECT decode(1, 2, c_char, c_text) AS result, pg_typeof(result) FROM t1; + result | pg_typeof +--------+----------- + 4 | text +(1 row) + +--result1类型为int,属于数值类型范畴,返回值的类型置为numeric。 +ora_1=# SELECT decode(1, 2, c_int, c_float8) AS result, pg_typeof(result) FROM t1; + result | pg_typeof +--------+----------- + 2 | numeric +(1 row) + +--不存在defresult数据类型向result1数据类型之间的隐式转换,报错处理。 +ora_1=# SELECT decode(1, 2, c_int, c_date) FROM t1; +ERROR: CASE types integer and timestamp without time zone cannot be matched +LINE 1: SELECT decode(1, 2, c_int, c_date) FROM t1; + ^ +CONTEXT: referenced column: c_date + +--关闭Decode兼容性参数。 +set sql_beta_feature='none'; + +--删除表。 +ora_1=# DROP TABLE t1; +DROP TABLE + +--切换数据库为postgres。 +ora_1=# \c postgres + +--删除ORA模式的数据库。 +MogDB=# DROP DATABASE ora_1; +DROP DATABASE +``` diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/6-full-text-search/1-introduction/3-basic-text-matching.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/6-full-text-search/1-introduction/3-basic-text-matching.md index a6f6ad3f..06b2da5e 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/6-full-text-search/1-introduction/3-basic-text-matching.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/6-full-text-search/1-introduction/3-basic-text-matching.md @@ -22,7 +22,7 @@ mogdb=# SELECT 'fat & cow'::tsquery @@ 'a fat cat sat on a mat and ate a fat rat (1 row) ``` -正如上面例子表明,tsquery不仅是文本,且比tsvector包含的要多。tsquery包含已经标注化为词条的搜索词,同时可能是使用AND、OR、或NOT操作符连接的多个术语。函数to_tsquery和plainto_tsquery对于将用户书写文本转换成适合的tsquery是非常有用的,比如将文本中的词标准化。类似地,to_tsvector用于解析和标准化文档字符串。因此,实际中文本搜索匹配看起来更像这样: +正如上面例子表明,tsquery不仅是文本,且比tsvector包含的要多。tsquery包含已经标注化为词条的搜索词,同时可能是使用AND、OR、或NOT操作符连接的多个术语。详细请参见[文本搜索类型](10-text-search-types)。函数to_tsquery和plainto_tsquery对于将用户书写文本转换成适合的tsquery是非常有用的,比如将文本中的词标准化。类似地,to_tsvector用于解析和标准化文档字符串。因此,实际中文本搜索匹配看起来更像这样: ```sql mogdb=# SELECT to_tsvector('fat cats ate fat rats') @@ to_tsquery('fat & rat') AS RESULT; diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/6-full-text-search/7-configuration-examples.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/6-full-text-search/7-configuration-examples.md index 2e92ba0a..e379660e 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/6-full-text-search/7-configuration-examples.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/6-full-text-search/7-configuration-examples.md @@ -12,7 +12,7 @@ date: 2021-05-17 - 解析器,用于把文本分解成标记token。 - 词典列表,用于将每个token转换成词位lexeme。 -每次to_tsvector或to_tsquery函数调用时,都需要指定一个文本搜索配置来指定具体的处理过程。GUC参数**default_text_search_config**指定了默认的文本搜索配置,当文本搜索函数中没有显式指定文本搜索配置参数时,将会使用该默认值进行处理。 +每次to_tsvector或to_tsquery函数调用时,都需要指定一个文本搜索配置来指定具体的处理过程。GUC参数[default_text_search_config](2-zone-and-formatting#default_text_search_config)指定了默认的文本搜索配置,当文本搜索函数中没有显式指定文本搜索配置参数时,将会使用该默认值进行处理。 MogDB中预定义有一些可用的文本搜索配置,用户也可创建自定义的文本搜索配置。此外,为了便于管理文本搜索对象,还提供有多个gsql元命令,可以显示有关文本搜索对象的信息。(详细请参见《工具参考》中“客户端工具 \>[元命令参考](client-tool#元命令参考)”章节)。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/9-ddl-syntax-overview.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/9-ddl-syntax-overview.md index 405a8821..16b27a7e 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/9-ddl-syntax-overview.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-reference/9-ddl-syntax-overview.md @@ -143,6 +143,7 @@ DDL(Data Definition Language数据定义语言),用于定义或修改数 | :----- | :------------------------------------ | | 创建包 | [CREATE PACKAGE](CREATE-PACKAGE) | | 删除包 | [DROP PACKAGE](DROP-PACKAGE) | +| 修改包属性 | [ALTER PACKAGE](ALTER-PACKAGE) | ## 定义视图 -- Gitee