From 291f8c0206b7973c54c125bbae66a3a39edd4fa0 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Thu, 5 Sep 2024 17:39:43 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix(mogdb):=E4=BF=AE=E6=AD=A3dolphin=20ALTE?= =?UTF-8?q?R=20TABLE=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql-reference/sql-syntax/dolphin-alter-table.md | 2 +- .../sql-reference/sql-syntax/dolphin-alter-table.md | 2 +- .../sql-reference/sql-syntax/dolphin-alter-table.md | 2 +- .../sql-reference/sql-syntax/dolphin-alter-table.md | 2 +- .../sql-reference/sql-syntax/dolphin-alter-table.md | 2 +- .../sql-reference/sql-syntax/dolphin-alter-table.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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 52be0429..19214ebc 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.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 52be0429..19214ebc 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/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 52be0429..19214ebc 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/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 39a7389a..61ca8a4f 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.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 39a7389a..61ca8a4f 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/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 7be5adde..d6ad0241 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 ]** -- Gitee From 9e5a4a5055f612a9cb94ce79c2919ba3b0462bba Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Mon, 9 Sep 2024 17:14:46 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix(mogdb):extend=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=8F=AA=E6=94=AF=E6=8C=81=E4=B8=80=E4=B8=AA=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plpgsql/1-4-arrays-and-records.md | 19 +++---------------- .../plpgsql/1-4-arrays-and-records.md | 19 +++---------------- .../plpgsql/1-4-arrays-and-records.md | 19 +++---------------- .../plpgsql/1-4-arrays-and-records.md | 19 +++---------------- .../plpgsql/1-4-arrays-and-records.md | 19 +++---------------- .../plpgsql/1-4-arrays-and-records.md | 19 +++---------------- 6 files changed, 18 insertions(+), 96 deletions(-) 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 3af5831d..e580331f 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,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/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 3af5831d..e580331f 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/plpgsql/1-4-arrays-and-records.md b/product/en/docs-mogdb/v6.0/developer-guide/plpgsql/1-4-arrays-and-records.md index 3af5831d..e580331f 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/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 bdae4db7..0777d07f 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 @@ -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/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 ce43dc3f..663b3d93 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/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 bdae4db7..0777d07f 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])] -- Gitee From 7800acfabff16c102099e5da43eecfffcd754d40 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Mon, 9 Sep 2024 17:47:11 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix(mogdb):delete=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81=E5=88=A0=E9=99=A4=E5=8C=BA=E9=97=B4?= =?UTF-8?q?=EF=BC=8C=E8=AE=BF=E9=97=AE=E8=A2=AB=E5=88=A0=E6=88=90=E5=91=98?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E5=88=B0=E7=B4=A2=E5=BC=95=E4=B8=8B=E4=B8=80?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plpgsql/1-4-arrays-and-records.md | 17 ++------------- .../plpgsql/1-4-arrays-and-records.md | 21 ++++--------------- 2 files changed, 6 insertions(+), 32 deletions(-) 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 e580331f..e61ac6a5 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 @@ -328,9 +328,9 @@ The set functions support **multiset union**, **intersect**, **except all**, and 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. @@ -366,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/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 0777d07f..70482605 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) **说明:** > @@ -494,13 +494,13 @@ MogDB=# DROP PROCEDURE nest_table_proc; ANONYMOUS BLOCK EXECUTE ``` -- delete[(idx1[, idx2])] +- delete[(idx)] - 参数:idx1和idx2为int4类型或varchar2类型 + 参数:idx为int4类型或varchar2类型 返回值:无返回值 - 功能描述:无参数时,(nesttable)删除集合类型的所有元素和空间,后续使用需要重新extend,(indexbytable)删除所有元素内容,一个参数删除指定位置元素(不删除空间),两个参数删除小标区间内的元素(不删除空间)。 + 功能描述:无参数时,(nesttable)删除集合类型的所有元素和空间,后续使用需要重新extend,(indexbytable)删除所有元素内容,一个参数删除指定位置元素(不删除空间)。 约束:嵌套场景不支持delete()。 @@ -532,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)] -- Gitee From 9cc10936c87363d85ad5e63ebc6ee11f69f04253 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Tue, 10 Sep 2024 10:24:27 +0800 Subject: [PATCH 4/4] fix(mogdb):issue IAPTI6 --- .../v1.1/reference-guide/guc-parameters/26-query.md | 2 +- .../v2.0/reference-guide/guc-parameters/26-query.md | 2 +- .../v2.1/reference-guide/guc-parameters/26-query.md | 2 +- .../v3.0/reference-guide/guc-parameters/26-query.md | 2 +- .../v3.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md | 4 ++-- .../v3.1/reference-guide/guc-parameters/26-query.md | 2 +- .../v3.1/reference-guide/schema/DBE_PERF/query/STATEMENT.md | 4 ++-- .../docs-mogdb/v5.0/reference-guide/guc-parameters/query.md | 2 +- .../v5.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md | 4 ++-- .../docs-mogdb/v5.2/reference-guide/guc-parameters/query.md | 2 +- .../v5.2/reference-guide/schema/DBE_PERF/query/STATEMENT.md | 6 +++--- .../v6.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md | 6 +++--- 12 files changed, 19 insertions(+), 19 deletions(-) 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 84c6bfc8..28f12b9e 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 084cb501..24190997 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 67e29572..36f0498d 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 7df42375..52ecb638 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 fc65e194..91b8430a 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 61e952ec..f95ee1ee 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 b679e58f..cd1490ed 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/reference-guide/guc-parameters/query.md b/product/zh/docs-mogdb/v5.0/reference-guide/guc-parameters/query.md index 81f25e98..9c7533fc 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 0e8e8cfd..93fbf9d7 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/reference-guide/guc-parameters/query.md b/product/zh/docs-mogdb/v5.2/reference-guide/guc-parameters/query.md index 13d34138..a55e2f35 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 0e8e8cfd..50b00d60 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/reference-guide/schema/DBE_PERF/query/STATEMENT.md b/product/zh/docs-mogdb/v6.0/reference-guide/schema/DBE_PERF/query/STATEMENT.md index d7c1a589..f6598560 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) -- Gitee