diff --git a/product/en/docs-mogdb/v5.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md b/product/en/docs-mogdb/v5.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md index 52be0429024fe66bc585cfb0bf0e3ecb4210ac4b..19214ebc43e35044859f37f96f0fd5182969112d 100644 --- a/product/en/docs-mogdb/v5.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md +++ b/product/en/docs-mogdb/v5.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md @@ -108,7 +108,7 @@ Modifies tables, including modifying table definitions, renaming tables, renamin - **DROP PRIMARY KEY [ RESTRICT | CASCADE ]** - Deletes the foreign key of a table. + Deletes the primary key of a table. - **DROP FOREIGN KEY foreign_key_name [ RESTRICT | CASCADE ]** diff --git a/product/en/docs-mogdb/v5.0/developer-guide/plpgsql/1-4-arrays-and-records.md b/product/en/docs-mogdb/v5.0/developer-guide/plpgsql/1-4-arrays-and-records.md index 3af5831d6be16169ccd6c6c43df7e6b385f86e09..e61ac6a53169c7e4aa4b54dda77fbd73e0882b7c 100644 --- a/product/en/docs-mogdb/v5.0/developer-guide/plpgsql/1-4-arrays-and-records.md +++ b/product/en/docs-mogdb/v5.0/developer-guide/plpgsql/1-4-arrays-and-records.md @@ -288,13 +288,13 @@ The set functions support **multiset union**, **intersect**, **except all**, and ANONYMOUS BLOCK EXECUTE ``` -- extend[(count[, idx])] +- extend[(e)] - Parameters: *idx* and *count* are of the int4 type. + Parameters: *e* is of the int4 type. Return type: No value is returned. - Description: Only the nest-table type is supported. One or *count* elements are extended at the end of the nest-table variable. If index set element *idx* exists, *count* index elements are copied to the end of the variable. + Description: Only the nest-table type is supported. One element is extended at the end of the nest-table variable. Restriction: extend() is not supported in nesting scenarios. @@ -326,24 +326,11 @@ The set functions support **multiset union**, **intersect**, **except all**, and INFO: {1} INFO: {1,NULL,NULL} ANONYMOUS BLOCK EXECUTE - - MogDB=# declare - MogDB-# type nest is table of int; - MogDB-# a nest := nest(1); - MogDB-# begin - MogDB$# raise info '%', a; - MogDB$# a.extend(2,1); - MogDB$# raise info '%', a; - MogDB$# end; - MogDB$# / - INFO: {1} - INFO: {1,1,1} - ANONYMOUS BLOCK EXECUTE ``` -- delete[(idx1[, idx2])] +- delete[(idx)] - Parameters: *idx1* and *idx2* are of the int4 or varchar2 type. + Parameters: *idx* is of the int4 or varchar2 type. Return type: No value is returned. @@ -379,19 +366,6 @@ The set functions support **multiset union**, **intersect**, **except all**, and INFO: {1,2,3,4,5} INFO: {1,2,4,5} ANONYMOUS BLOCK EXECUTE - - MogDB=# declare - MogDB-# type nest is table of int; - MogDB-# a nest := nest(1,2,3,4,5); - MogDB-# begin - MogDB$# raise info '%', a; - MogDB$# a.delete(2,4); - MogDB$# raise info '%', a; - MogDB$# end; - MogDB$# / - INFO: {1,2,3,4,5} - INFO: {1,5} - ANONYMOUS BLOCK EXECUTE ``` - trim[(n)] diff --git a/product/en/docs-mogdb/v5.2/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md b/product/en/docs-mogdb/v5.2/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md index 52be0429024fe66bc585cfb0bf0e3ecb4210ac4b..19214ebc43e35044859f37f96f0fd5182969112d 100644 --- a/product/en/docs-mogdb/v5.2/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md +++ b/product/en/docs-mogdb/v5.2/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md @@ -108,7 +108,7 @@ Modifies tables, including modifying table definitions, renaming tables, renamin - **DROP PRIMARY KEY [ RESTRICT | CASCADE ]** - Deletes the foreign key of a table. + Deletes the primary key of a table. - **DROP FOREIGN KEY foreign_key_name [ RESTRICT | CASCADE ]** diff --git a/product/en/docs-mogdb/v5.2/developer-guide/plpgsql/1-4-arrays-and-records.md b/product/en/docs-mogdb/v5.2/developer-guide/plpgsql/1-4-arrays-and-records.md index 3af5831d6be16169ccd6c6c43df7e6b385f86e09..e580331f876004e1a12f1f197a70443f24bc376d 100644 --- a/product/en/docs-mogdb/v5.2/developer-guide/plpgsql/1-4-arrays-and-records.md +++ b/product/en/docs-mogdb/v5.2/developer-guide/plpgsql/1-4-arrays-and-records.md @@ -288,13 +288,13 @@ The set functions support **multiset union**, **intersect**, **except all**, and ANONYMOUS BLOCK EXECUTE ``` -- extend[(count[, idx])] +- extend[(e)] - Parameters: *idx* and *count* are of the int4 type. + Parameters: *e* is of the int4 type. Return type: No value is returned. - Description: Only the nest-table type is supported. One or *count* elements are extended at the end of the nest-table variable. If index set element *idx* exists, *count* index elements are copied to the end of the variable. + Description: Only the nest-table type is supported. One element is extended at the end of the nest-table variable. Restriction: extend() is not supported in nesting scenarios. @@ -326,19 +326,6 @@ The set functions support **multiset union**, **intersect**, **except all**, and INFO: {1} INFO: {1,NULL,NULL} ANONYMOUS BLOCK EXECUTE - - MogDB=# declare - MogDB-# type nest is table of int; - MogDB-# a nest := nest(1); - MogDB-# begin - MogDB$# raise info '%', a; - MogDB$# a.extend(2,1); - MogDB$# raise info '%', a; - MogDB$# end; - MogDB$# / - INFO: {1} - INFO: {1,1,1} - ANONYMOUS BLOCK EXECUTE ``` - delete[(idx1[, idx2])] diff --git a/product/en/docs-mogdb/v6.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md b/product/en/docs-mogdb/v6.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md index 52be0429024fe66bc585cfb0bf0e3ecb4210ac4b..19214ebc43e35044859f37f96f0fd5182969112d 100644 --- a/product/en/docs-mogdb/v6.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md +++ b/product/en/docs-mogdb/v6.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md @@ -108,7 +108,7 @@ Modifies tables, including modifying table definitions, renaming tables, renamin - **DROP PRIMARY KEY [ RESTRICT | CASCADE ]** - Deletes the foreign key of a table. + Deletes the primary key of a table. - **DROP FOREIGN KEY foreign_key_name [ RESTRICT | CASCADE ]** diff --git a/product/en/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md b/product/en/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md index 3af5831d6be16169ccd6c6c43df7e6b385f86e09..e580331f876004e1a12f1f197a70443f24bc376d 100644 --- a/product/en/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md +++ b/product/en/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md @@ -288,13 +288,13 @@ The set functions support **multiset union**, **intersect**, **except all**, and ANONYMOUS BLOCK EXECUTE ``` -- extend[(count[, idx])] +- extend[(e)] - Parameters: *idx* and *count* are of the int4 type. + Parameters: *e* is of the int4 type. Return type: No value is returned. - Description: Only the nest-table type is supported. One or *count* elements are extended at the end of the nest-table variable. If index set element *idx* exists, *count* index elements are copied to the end of the variable. + Description: Only the nest-table type is supported. One element is extended at the end of the nest-table variable. Restriction: extend() is not supported in nesting scenarios. @@ -326,19 +326,6 @@ The set functions support **multiset union**, **intersect**, **except all**, and INFO: {1} INFO: {1,NULL,NULL} ANONYMOUS BLOCK EXECUTE - - MogDB=# declare - MogDB-# type nest is table of int; - MogDB-# a nest := nest(1); - MogDB-# begin - MogDB$# raise info '%', a; - MogDB$# a.extend(2,1); - MogDB$# raise info '%', a; - MogDB$# end; - MogDB$# / - INFO: {1} - INFO: {1,1,1} - ANONYMOUS BLOCK EXECUTE ``` - delete[(idx1[, idx2])] diff --git a/product/zh/docs-mogdb/v1.1/reference-guide/guc-parameters/26-query.md b/product/zh/docs-mogdb/v1.1/reference-guide/guc-parameters/26-query.md index 84c6bfc878cdf4aed95d30b60437632ad5dee846..28f12b9e6bea312b6d597d7ae10167c0df4755c7 100644 --- a/product/zh/docs-mogdb/v1.1/reference-guide/guc-parameters/26-query.md +++ b/product/zh/docs-mogdb/v1.1/reference-guide/guc-parameters/26-query.md @@ -11,7 +11,7 @@ date: 2021-04-20 **参数说明**: 控制系统中unique sql信息实时收集功能。配置为0表示不启用unique sql信息收集功能。 -该值由大变小将会清空系统中原有的数据重新统计;从小变大不受影响。 +该值由大变小将会清空系统中原有的数据重新统计(备机不支持此能力);从小变大不受影响。 当系统中产生的unique sql信息大于instr_unique_sql_count时,系统产生的unique sql信息不被统计。 diff --git a/product/zh/docs-mogdb/v2.0/reference-guide/guc-parameters/26-query.md b/product/zh/docs-mogdb/v2.0/reference-guide/guc-parameters/26-query.md index 084cb50149655fa7ffcb04585b7bce2822ba4a9e..24190997eefe512818c298b3cb09ea032f9c15d4 100644 --- a/product/zh/docs-mogdb/v2.0/reference-guide/guc-parameters/26-query.md +++ b/product/zh/docs-mogdb/v2.0/reference-guide/guc-parameters/26-query.md @@ -11,7 +11,7 @@ date: 2021-04-20 **参数说明**: 控制系统中unique sql信息实时收集功能。配置为0表示不启用unique sql信息收集功能。 -该值由大变小将会清空系统中原有的数据重新统计;从小变大不受影响。 +该值由大变小将会清空系统中原有的数据重新统计(备机不支持此能力);从小变大不受影响。 当系统中产生的unique sql信息大于instr_unique_sql_count时,系统产生的unique sql信息不被统计。 diff --git a/product/zh/docs-mogdb/v2.1/reference-guide/guc-parameters/26-query.md b/product/zh/docs-mogdb/v2.1/reference-guide/guc-parameters/26-query.md index 67e2957296f4f86816c7a6cea751bc866c0bc7bd..36f0498d706751c47ece1dca986891f586fafdca 100644 --- a/product/zh/docs-mogdb/v2.1/reference-guide/guc-parameters/26-query.md +++ b/product/zh/docs-mogdb/v2.1/reference-guide/guc-parameters/26-query.md @@ -11,7 +11,7 @@ date: 2021-04-20 **参数说明**: 控制系统中unique sql信息实时收集功能。配置为0表示不启用unique sql信息收集功能。 -该值由大变小将会清空系统中原有的数据重新统计;从小变大不受影响。 +该值由大变小将会清空系统中原有的数据重新统计(备机不支持此能力);从小变大不受影响。 当系统中产生的unique sql条目数量大于instr_unique_sql_count时,若开启了unique sql自动淘汰,则系统会按unique sql的更新时间由远到近自动淘汰一定比例的条目,使得新产生的unique sql信息可以继续被统计。若没有开启自动淘汰,则系统产生的新的unique sql信息将不再被统计。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/26-query.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/26-query.md index 7df42375970979660131cc14407c790bb13b32d0..52ecb6386299e6bf16000feb668fa395c85e1d19 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/26-query.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/26-query.md @@ -11,7 +11,7 @@ date: 2021-04-20 **参数说明**: 控制系统中unique sql信息实时收集功能。配置为0表示不启用unique sql信息收集功能。 -该值由大变小将会清空系统中原有的数据重新统计;从小变大不受影响。 +该值由大变小将会清空系统中原有的数据重新统计(备机不支持此能力);从小变大不受影响。 当系统中产生的unique sql条目数量大于instr_unique_sql_count时,若开启了unique sql自动淘汰,则系统会按unique sql的更新时间由远到近自动淘汰一定比例的条目,使得新产生的unique sql信息可以继续被统计。若没有开启自动淘汰,则系统产生的新的unique sql信息将不再被统计。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md b/product/zh/docs-mogdb/v3.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md index fc65e194cb8956693d7cdd09fbba9b308cf36836..91b8430a2d1bc524edfe9a35146917cd602cd1e0 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md @@ -72,10 +72,10 @@ MogDB=# select * from dbe_perf.statement; - enable_resource_track:允许运行时候的资源使用追踪。 -- instr_unique_sql_count:允许记录在内存中的SQL总数量。每次修改此参数,都会重置掉内存中已经存在的所有的归一化SQL。 +- instr_unique_sql_count:允许记录在内存中的SQL总数量。该值由大变小将会重置掉内存中已经存在的所有的归一化SQL;从小变大不受影响。 - instr_unique_sql_track_type:归一化SQL追踪的方式,参数取值为top、all,目前仅支持top,对于存储过程,仅记录最外层调用而非所有SQL。 -- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动随机清理其中10%的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 +- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动按照更新时间清理其中10%最近更新的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 另请参阅:[GUC参数 - Query](../../../guc-parameters/26-query.md) diff --git a/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/26-query.md b/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/26-query.md index 61e952ec96af12d37cd14f1ef5839b31c317cf66..f95ee1ee8c3a25976d06729b4799e161144a8e7d 100644 --- a/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/26-query.md +++ b/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/26-query.md @@ -11,7 +11,7 @@ date: 2021-04-20 **参数说明**: 控制系统中unique sql信息实时收集功能。配置为0表示不启用unique sql信息收集功能。 -该值由大变小将会清空系统中原有的数据重新统计;从小变大不受影响。 +该值由大变小将会清空系统中原有的数据重新统计(备机不支持此能力);从小变大不受影响。 当系统中产生的unique sql条目数量(dbe_perf.statement/dbe_perf.summary_statement统计)大于instr_unique_sql_count时,若开启了unique sql自动淘汰,则系统会按unique sql的更新时间由远到近自动淘汰一定比例的条目,使得新产生的unique sql信息可以继续被统计。若没有开启自动淘汰,则系统产生的新的unique sql信息将不再被统计。 diff --git a/product/zh/docs-mogdb/v3.1/reference-guide/schema/DBE_PERF/query/STATEMENT.md b/product/zh/docs-mogdb/v3.1/reference-guide/schema/DBE_PERF/query/STATEMENT.md index b679e58fb75a9ad28b35df055db7a929597ac95f..cd1490ed2bac4d523a7dd5e841208e92b56df7ce 100644 --- a/product/zh/docs-mogdb/v3.1/reference-guide/schema/DBE_PERF/query/STATEMENT.md +++ b/product/zh/docs-mogdb/v3.1/reference-guide/schema/DBE_PERF/query/STATEMENT.md @@ -69,10 +69,10 @@ MogDB=# select * from dbe_perf.statement; - enable_resource_track:允许运行时候的资源使用追踪。 -- instr_unique_sql_count:允许记录在内存中的SQL总数量。每次修改此参数,都会重置掉内存中已经存在的所有的归一化SQL。 +- instr_unique_sql_count:允许记录在内存中的SQL总数量。该值由大变小将会重置掉内存中已经存在的所有的归一化SQL;从小变大不受影响。 - instr_unique_sql_track_type:归一化SQL追踪的方式,参数取值为top、all,目前仅支持top,对于存储过程,仅记录最外层调用而非所有SQL。 -- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动随机清理其中10%的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 +- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动按照更新时间清理其中10%最近更新的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 另请参阅:[GUC参数 - Query](../../../guc-parameters/26-query.md) diff --git a/product/zh/docs-mogdb/v5.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md b/product/zh/docs-mogdb/v5.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md index 39a7389a9fb26a67e604ac5315bc95b8586b2e72..61ca8a4f0651cf2656662b2bd5ce57b948ef5ba6 100644 --- a/product/zh/docs-mogdb/v5.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md +++ b/product/zh/docs-mogdb/v5.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md @@ -132,7 +132,7 @@ date: 2022-10-24 - **DROP PRIMARY KEY [ RESTRICT | CASCADE ]** - 删除一个表的外键。 + 删除一个表的主键。 - **DROP FOREIGN KEY foreign_key_name [ RESTRICT | CASCADE ]** diff --git a/product/zh/docs-mogdb/v5.0/developer-guide/plpgsql/1-4-arrays-and-records.md b/product/zh/docs-mogdb/v5.0/developer-guide/plpgsql/1-4-arrays-and-records.md index bdae4db7f5283a03c412c5735b1d2c8cdfd437bb..704826051fbbcafc50db6fa547bc86de159419d7 100644 --- a/product/zh/docs-mogdb/v5.0/developer-guide/plpgsql/1-4-arrays-and-records.md +++ b/product/zh/docs-mogdb/v5.0/developer-guide/plpgsql/1-4-arrays-and-records.md @@ -73,7 +73,7 @@ var_name table_type [:= table_type([v1[,...]])]; 可在变量声明时或者声明后使用类型构造器对变量进行初始化。如未初始化,变量var_name的值为NULL。 -变量声明和初始化后,可通过下标访问集合成员,或者对成员进行赋值。下标的范围为 [1, upper], upper 的值为当前空间的大小。如访问被删除的成员,会返回no data found的错误信息。 +变量声明和初始化后,可通过下标访问集合成员,或者对成员进行赋值。下标的范围为 [1, upper], upper 的值为当前空间的大小。如访问已被删除的成员,读取到的是已删除成员下一个索引位置的值。 > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > @@ -454,13 +454,13 @@ MogDB=# DROP PROCEDURE nest_table_proc; ANONYMOUS BLOCK EXECUTE ``` -- extend[(count[, idx])] +- extend[(e)] - 参数:idx和count为int4类型 + 参数:e为int4类型 返回值:无返回值 - 功能描述:仅支持nesttable类型。在nesttable变量末尾拓展1个或count个元素。存在idx下标元素时,拷贝count个idx下元素到变量末尾。 + 功能描述:仅支持nesttable类型。在nesttable变量末尾拓展1个元素。 约束:嵌套场景不支持extend()。 @@ -492,28 +492,15 @@ MogDB=# DROP PROCEDURE nest_table_proc; INFO: {1} INFO: {1,NULL,NULL} ANONYMOUS BLOCK EXECUTE - - MogDB=# declare - MogDB-# type nest is table of int; - MogDB-# a nest := nest(1); - MogDB-# begin - MogDB$# raise info '%', a; - MogDB$# a.extend(2,1); - MogDB$# raise info '%', a; - MogDB$# end; - MogDB$# / - INFO: {1} - INFO: {1,1,1} - ANONYMOUS BLOCK EXECUTE ``` -- delete[(idx1[, idx2])] +- delete[(idx)] - 参数:idx1和idx2为int4类型或varchar2类型 + 参数:idx为int4类型或varchar2类型 返回值:无返回值 - 功能描述:无参数时,(nesttable)删除集合类型的所有元素和空间,后续使用需要重新extend,(indexbytable)删除所有元素内容,一个参数删除指定位置元素(不删除空间),两个参数删除小标区间内的元素(不删除空间)。 + 功能描述:无参数时,(nesttable)删除集合类型的所有元素和空间,后续使用需要重新extend,(indexbytable)删除所有元素内容,一个参数删除指定位置元素(不删除空间)。 约束:嵌套场景不支持delete()。 @@ -545,19 +532,6 @@ MogDB=# DROP PROCEDURE nest_table_proc; INFO: {1,2,3,4,5} INFO: {1,2,4,5} ANONYMOUS BLOCK EXECUTE - - MogDB=# declare - MogDB-# type nest is table of int; - MogDB-# a nest := nest(1,2,3,4,5); - MogDB-# begin - MogDB$# raise info '%', a; - MogDB$# a.delete(2,4); - MogDB$# raise info '%', a; - MogDB$# end; - MogDB$# / - INFO: {1,2,3,4,5} - INFO: {1,5} - ANONYMOUS BLOCK EXECUTE ``` - trim[(n)] diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/query.md b/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/query.md index 81f25e9847c5d5749e3052cfcc0e9f480bd712a6..9c7533fc29bced0ad59b268b3d90b3e5c58391fa 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/query.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/query.md @@ -11,7 +11,7 @@ date: 2021-04-20 **参数说明**: 控制系统中unique sql信息实时收集功能。配置为0表示不启用unique sql信息收集功能。 -该值由大变小将会清空系统中原有的数据重新统计;从小变大不受影响。 +该值由大变小将会清空系统中原有的数据重新统计(备机不支持此能力);从小变大不受影响。 当系统中产生的unique sql条目数量(dbe_perf.statement/dbe_perf.summary_statement统计)大于instr_unique_sql_count时,若开启了unique sql自动淘汰,则系统会按unique sql的更新时间由远到近自动淘汰一定比例的条目,使得新产生的unique sql信息可以继续被统计。若没有开启自动淘汰,则系统产生的新的unique sql信息将不再被统计。 diff --git a/product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md b/product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md index 0e8e8cfd672d45cc6db428769c510de53b6bd606..93fbf9d73d51a7fee61d025b696fac42d75237fc 100644 --- a/product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md +++ b/product/zh/docs-mogdb/v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md @@ -72,10 +72,10 @@ MogDB=# select * from dbe_perf.statement; - enable_resource_track:允许运行时候的资源使用追踪。 -- instr_unique_sql_count:允许记录在内存中的SQL总数量。每次修改此参数,都会重置掉内存中已经存在的所有的归一化SQL。 +- instr_unique_sql_count:允许记录在内存中的SQL总数量。该值由大变小将会重置掉内存中已经存在的所有的归一化SQL;从小变大不受影响。 - instr_unique_sql_track_type:归一化SQL追踪的方式,参数取值为top、all,目前仅支持top,对于存储过程,仅记录最外层调用而非所有SQL。 -- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动随机清理其中10%的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 +- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动按照更新时间清理其中10%最近更新的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 另请参阅:[GUC参数 - Query](../../../guc-parameters/query.md) diff --git a/product/zh/docs-mogdb/v5.2/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md b/product/zh/docs-mogdb/v5.2/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md index 39a7389a9fb26a67e604ac5315bc95b8586b2e72..61ca8a4f0651cf2656662b2bd5ce57b948ef5ba6 100644 --- a/product/zh/docs-mogdb/v5.2/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md +++ b/product/zh/docs-mogdb/v5.2/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md @@ -132,7 +132,7 @@ date: 2022-10-24 - **DROP PRIMARY KEY [ RESTRICT | CASCADE ]** - 删除一个表的外键。 + 删除一个表的主键。 - **DROP FOREIGN KEY foreign_key_name [ RESTRICT | CASCADE ]** diff --git a/product/zh/docs-mogdb/v5.2/developer-guide/plpgsql/1-4-arrays-and-records.md b/product/zh/docs-mogdb/v5.2/developer-guide/plpgsql/1-4-arrays-and-records.md index ce43dc3f037d67a37d3532b1a207e3853b62eced..663b3d930af9a6bfdcbb8014c51b0143467bfbdd 100644 --- a/product/zh/docs-mogdb/v5.2/developer-guide/plpgsql/1-4-arrays-and-records.md +++ b/product/zh/docs-mogdb/v5.2/developer-guide/plpgsql/1-4-arrays-and-records.md @@ -453,13 +453,13 @@ MogDB=# DROP PROCEDURE nest_table_proc; ANONYMOUS BLOCK EXECUTE ``` -- extend[(count[, idx])] +- extend[(e)] - 参数:idx和count为int4类型 + 参数:e为int4类型 返回值:无返回值 - 功能描述:仅支持nesttable类型。在nesttable变量末尾拓展1个或count个元素。存在idx下标元素时,拷贝count个idx下元素到变量末尾。 + 功能描述:仅支持nesttable类型。在nesttable变量末尾拓展1个元素。 约束:嵌套场景不支持extend()。 @@ -491,19 +491,6 @@ MogDB=# DROP PROCEDURE nest_table_proc; INFO: {1} INFO: {1,NULL,NULL} ANONYMOUS BLOCK EXECUTE - - MogDB=# declare - MogDB-# type nest is table of int; - MogDB-# a nest := nest(1); - MogDB-# begin - MogDB$# raise info '%', a; - MogDB$# a.extend(2,1); - MogDB$# raise info '%', a; - MogDB$# end; - MogDB$# / - INFO: {1} - INFO: {1,1,1} - ANONYMOUS BLOCK EXECUTE ``` - delete[(idx1[, idx2])] diff --git a/product/zh/docs-mogdb/v5.2/reference-guide/guc-parameters/query.md b/product/zh/docs-mogdb/v5.2/reference-guide/guc-parameters/query.md index 13d34138f528261852e60727ee00818ac18e0165..a55e2f35e6c46a9943687bb7676882b133e7d504 100644 --- a/product/zh/docs-mogdb/v5.2/reference-guide/guc-parameters/query.md +++ b/product/zh/docs-mogdb/v5.2/reference-guide/guc-parameters/query.md @@ -11,7 +11,7 @@ date: 2021-04-20 **参数说明**: 控制系统中unique sql信息实时收集功能。配置为0表示不启用unique sql信息收集功能。 -该值由大变小将会清空系统中原有的数据重新统计;从小变大不受影响。 +该值由大变小将会清空系统中原有的数据重新统计(备机不支持此能力);从小变大不受影响。 当系统中产生的unique sql条目数量(dbe_perf.statement/dbe_perf.summary_statement统计)大于instr_unique_sql_count时,若开启了unique sql自动淘汰,则系统会按unique sql的更新时间由远到近自动淘汰一定比例的条目,使得新产生的unique sql信息可以继续被统计。若没有开启自动淘汰,则系统产生的新的unique sql信息将不再被统计。 diff --git a/product/zh/docs-mogdb/v5.2/reference-guide/schema/DBE_PERF/query/STATEMENT.md b/product/zh/docs-mogdb/v5.2/reference-guide/schema/DBE_PERF/query/STATEMENT.md index 0e8e8cfd672d45cc6db428769c510de53b6bd606..50b00d6038c9863e61a39128808923c5cb42a526 100644 --- a/product/zh/docs-mogdb/v5.2/reference-guide/schema/DBE_PERF/query/STATEMENT.md +++ b/product/zh/docs-mogdb/v5.2/reference-guide/schema/DBE_PERF/query/STATEMENT.md @@ -72,10 +72,10 @@ MogDB=# select * from dbe_perf.statement; - enable_resource_track:允许运行时候的资源使用追踪。 -- instr_unique_sql_count:允许记录在内存中的SQL总数量。每次修改此参数,都会重置掉内存中已经存在的所有的归一化SQL。 +- instr_unique_sql_count:允许记录在内存中的SQL总数量。该值由大变小将会重置掉内存中已经存在的所有的归一化SQL;从小变大不受影响。 -- instr_unique_sql_track_type:归一化SQL追踪的方式,参数取值为top、all,目前仅支持top,对于存储过程,仅记录最外层调用而非所有SQL。 +- instr_unique_sql_track_type:归一化SQL追踪的方式,参数取值为top、all,为top时只支持记录最外层调用的语句,为all时则可记录函数及存储过程内的语句。 -- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动随机清理其中10%的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 +- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动按照更新时间清理其中10%最近更新的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 另请参阅:[GUC参数 - Query](../../../guc-parameters/query.md) diff --git a/product/zh/docs-mogdb/v6.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md b/product/zh/docs-mogdb/v6.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md index 7be5addef866aabf8c50afbf6ad6d443656f7de2..d6ad024162ecc73a274163642eec5f35aa725f04 100644 --- a/product/zh/docs-mogdb/v6.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md +++ b/product/zh/docs-mogdb/v6.0/developer-guide/mysql-compatibility-description/dolphin-extension/dolphin-syntax/sql-reference/sql-syntax/dolphin-alter-table.md @@ -139,7 +139,7 @@ date: 2022-10-24 - **DROP PRIMARY KEY [ RESTRICT | CASCADE ]** - 删除一个表的外键。 + 删除一个表的主键。 - **DROP FOREIGN KEY foreign_key_name [ RESTRICT | CASCADE ]** diff --git a/product/zh/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md b/product/zh/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md index bdae4db7f5283a03c412c5735b1d2c8cdfd437bb..0777d07f11b212eabc579e5c1336d1450b74c8a6 100644 --- a/product/zh/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md +++ b/product/zh/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md @@ -454,13 +454,13 @@ MogDB=# DROP PROCEDURE nest_table_proc; ANONYMOUS BLOCK EXECUTE ``` -- extend[(count[, idx])] +- extend[(e)] - 参数:idx和count为int4类型 + 参数:e为int4类型 返回值:无返回值 - 功能描述:仅支持nesttable类型。在nesttable变量末尾拓展1个或count个元素。存在idx下标元素时,拷贝count个idx下元素到变量末尾。 + 功能描述:仅支持nesttable类型。在nesttable变量末尾拓展1个元素。 约束:嵌套场景不支持extend()。 @@ -492,19 +492,6 @@ MogDB=# DROP PROCEDURE nest_table_proc; INFO: {1} INFO: {1,NULL,NULL} ANONYMOUS BLOCK EXECUTE - - MogDB=# declare - MogDB-# type nest is table of int; - MogDB-# a nest := nest(1); - MogDB-# begin - MogDB$# raise info '%', a; - MogDB$# a.extend(2,1); - MogDB$# raise info '%', a; - MogDB$# end; - MogDB$# / - INFO: {1} - INFO: {1,1,1} - ANONYMOUS BLOCK EXECUTE ``` - delete[(idx1[, idx2])] diff --git a/product/zh/docs-mogdb/v6.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md b/product/zh/docs-mogdb/v6.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md index d7c1a5899cc6aa4523ef7a866d8a797cf16cefef..f659856026402a105c02b6c00066c14172201160 100644 --- a/product/zh/docs-mogdb/v6.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md +++ b/product/zh/docs-mogdb/v6.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md @@ -88,10 +88,10 @@ MogDB=# select * from dbe_perf.statement; - enable_resource_track:允许运行时候的资源使用追踪。 -- instr_unique_sql_count:允许记录在内存中的SQL总数量。每次修改此参数,都会重置掉内存中已经存在的所有的归一化SQL。 +- instr_unique_sql_count:允许记录在内存中的SQL总数量。该值由大变小将会重置掉内存中已经存在的所有的归一化SQL;从小变大不受影响。 -- instr_unique_sql_track_type:归一化SQL追踪的方式,参数取值为top、all,目前仅支持top,对于存储过程,仅记录最外层调用而非所有SQL。 +- instr_unique_sql_track_type:归一化SQL追踪的方式,参数取值为top、all,为top时只支持记录最外层调用的语句,为all时则可记录函数及存储过程内的语句。 -- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动随机清理其中10%的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 +- enable_auto_clean_unique_sql:是否打开归一化SQL的自动清理机制,当记录达到上限后,可以自动按照更新时间清理其中10%最近更新的记录。如果不打开,则会记录错误日志,SQL相关内容也不会记录到内存中。 另请参阅:[GUC参数 - Query](../../../guc-parameters/query.md)