diff --git a/content/en/docs/Developerguide/figures/en-us_image_0252663634.png b/content/en/docs/Developerguide/figures/en-us_image_0252663634.png index f4c43b73c4dab2c8360ba9c4b7894793e3ac2345..fd252d899dfafcd02e17dbf5d6d2d021cc6f2b08 100644 Binary files a/content/en/docs/Developerguide/figures/en-us_image_0252663634.png and b/content/en/docs/Developerguide/figures/en-us_image_0252663634.png differ diff --git a/content/en/docs/Developerguide/figures/sql-execution-plan-example.png b/content/en/docs/Developerguide/figures/sql-execution-plan-example.png index f4c43b73c4dab2c8360ba9c4b7894793e3ac2345..fd252d899dfafcd02e17dbf5d6d2d021cc6f2b08 100644 Binary files a/content/en/docs/Developerguide/figures/sql-execution-plan-example.png and b/content/en/docs/Developerguide/figures/sql-execution-plan-example.png differ diff --git a/content/en/docs/Developerguide/global_stat_db_cu.md b/content/en/docs/Developerguide/global_stat_db_cu.md index c6896e5648a82299ee22f9cc49b750a6699cdc06..602acae00f7b36c7c311caea1d7a7f92695692fc 100644 --- a/content/en/docs/Developerguide/global_stat_db_cu.md +++ b/content/en/docs/Developerguide/global_stat_db_cu.md @@ -1,6 +1,6 @@ # GLOBAL\_STAT\_DB\_CU -**GLOBAL\_STAT\_DB\_CU** is used to query CU hits in each database in openGauss. You can clear it using **gs\_stat\_reset\(\)**. +**GLOBAL\_STAT\_DB\_CU** is used to query CU hits in each database in openGauss. You can clear it using **pg\_stat\_reset\(\)**. **Table 1** GLOBAL\_STAT\_DB\_CU columns diff --git a/content/en/docs/Developerguide/resetting-key-parameters-during-sql-tuning.md b/content/en/docs/Developerguide/resetting-key-parameters-during-sql-tuning.md index ca7dcf4ed879738b6b577c4e88e6931daff0f3d2..6d63e6e733e40e33b36773064e95426ee865c00d 100644 --- a/content/en/docs/Developerguide/resetting-key-parameters-during-sql-tuning.md +++ b/content/en/docs/Developerguide/resetting-key-parameters-during-sql-tuning.md @@ -71,10 +71,11 @@ This section introduces key parameters of the primary database node that affect
Controls whether the optimizer is enabled. SEL_ SEMI_ POISSON/SEL_ EXPR_ INSTR/PARAM_ PATH_ GEN/RAND_ COST_ OPT/PARAM_ PATH_ OPT/PAGE_ EST_ Opt test function.
+Controls whether the optimizer is enabled. SEL_ SEMI_ POISSON/SEL_ EXPR_ INSTR/PARAM_ PATH_ GEN/RAND_ COST_ OPT/PARAM_ PATH_ OPT/PAGE_ EST_ Opt/CANONICAL_PATHKEY/PARTITION_OPFUSION test function.
普通用户只能查看到自己帐户所对应的会话状态。即其他帐户的state信息为空。例如以judy用户连接数据库后,在pg_stat_activity中查看到的普通用户joe及初始用户omm的state信息为空:
openGauss=# SELECT datname, usename, usesysid,state,pid FROM pg_stat_activity;
datname | usename | usesysid | state | pid
-----------+---------+----------+--------+-----------------postgres | omm | 10 | |139968752121616
+----------+---------+----------+--------+-----------------
+postgres | omm | 10 | |139968752121616
postgres | omm | 10 | |139968903116560
db_tpcds | judy | 16398 | active |139968391403280
postgres | omm | 10 | |139968643069712
@@ -162,3 +163,4 @@ + diff --git a/content/zh/docs/Developerguide/SNAPSHOT-SNAPSHOT.md b/content/zh/docs/Developerguide/SNAPSHOT-SNAPSHOT.md index 373100888bc3567bc0df658d9eeec627c808506c..1124eafcde8c2c7eec61da6c56901ba156918a42 100644 --- a/content/zh/docs/Developerguide/SNAPSHOT-SNAPSHOT.md +++ b/content/zh/docs/Developerguide/SNAPSHOT-SNAPSHOT.md @@ -1,6 +1,6 @@ # SNAPSHOT.SNAPSHOT -SNAPSHOT表记录当前系统中存储的WDR 快照数据的索引信息,开始,结束时间。 +SNAPSHOT表记录当前系统中存储的WDR 快照数据的索引信息,开始,结束时间。只能在系统库中查询到结果,用户库中无法查询。 **表 1** SNAPSHOT表属性 diff --git a/content/zh/docs/Developerguide/SQL-on-Spark.md b/content/zh/docs/Developerguide/SQL-on-Spark.md index 5e93ba1adf2052ca06c99cdf26103b1e26b4811d..25a92e14e1e96445d29938686a2f18591b8f643a 100644 --- a/content/zh/docs/Developerguide/SQL-on-Spark.md +++ b/content/zh/docs/Developerguide/SQL-on-Spark.md @@ -219,7 +219,7 @@ SQL on Spark支持的数据类型,见下表。 2. 用户需要保证package.zip中的内容完整,DSN.ini中的内容正确。安装部署完成后不进行修改,否则搭建好的环境有无法正常使用的风险。 3. Extension Connector仅支持连接单个Spark数据库实例。若建立多个Spark连接,则会产生认证冲突。 4. 修改Spark数据库实例的用户密码会导致认证凭据失效。需要在主界面点击最上方的“系统”选项进入用户界面。选择需要连接Spark的用户,点击“更多”,选择认证凭据后重新下载。再把下载好的认证凭据上传至GAUSSHOME/utilslib/fc\_conf/DSN/路径下。其中DSN为用户自定义DSN名。然后解压认证凭据替换已有文件。最后修改认证凭据属主为数据库实例用户。 -5. 要求Spark ODBC必须用gcc 5.4及以上版本编译。 +5. 要求Spark ODBC必须用gcc 7.3及以上版本编译。 ## **示例** diff --git "a/content/zh/docs/Developerguide/SQL\350\260\203\344\274\230\345\205\263\351\224\256\345\217\202\346\225\260\350\260\203\346\225\264.md" "b/content/zh/docs/Developerguide/SQL\350\260\203\344\274\230\345\205\263\351\224\256\345\217\202\346\225\260\350\260\203\346\225\264.md" index 5dc6243d2f76eb1b978839391f3f07e79d811a35..4b164aa0877f0be6af3f9271169bd0885acd83c9 100644 --- "a/content/zh/docs/Developerguide/SQL\350\260\203\344\274\230\345\205\263\351\224\256\345\217\202\346\225\260\350\260\203\346\225\264.md" +++ "b/content/zh/docs/Developerguide/SQL\350\260\203\344\274\230\345\205\263\351\224\256\345\217\202\346\225\260\350\260\203\346\225\264.md" @@ -71,9 +71,10 @@控制优化器是否启用。SEL_SEMI_POISSON/SEL_EXPR_INSTR/PARAM_PATH_GEN/RAND_COST_OPT/PARAM_PATH_OPT/PAGE_EST_OPT/CANONICAL_PATHKEY测试功能。
+控制优化器是否启用。SEL_SEMI_POISSON/SEL_EXPR_INSTR/PARAM_PATH_GEN/RAND_COST_OPT/PARAM_PATH_OPT/PAGE_EST_OPT/CANONICAL_PATHKEY/PARTITION_OPFUSION测试功能。
- | -- | -- | -
---|---|---|
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -软解析次数,n_soft_parse + n_hard_parse可能大于n_calls,因为子查询未计入n_calls。 - |
-
- | -- | -硬解析次数,n_soft_parse + n_hard_parse可能大于n_calls,因为子查询未计入n_calls。 - |
-
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -通过物理连接发送消息的网络状态,包含时间(微秒)、调用次数、吞吐量(字节)。通过该字段可以分析SQL在分布式系统下的网络开销,单机模式下不支持该字段。例如:{"time":xxx, "n_calls":xxx, "size":xxx}。 - |
-
- | -- | -通过物理连接接收消息的网络状态,包含时间(微秒)、调用次数、吞吐量(字节)。通过该字段可以分析SQL在分布式系统下的网络开销,单机模式下不支持该字段。例如:{"time":xxx, "n_calls":xxx, "size":xxx}。 - |
-
- | -- | -通过逻辑连接发送消息的网络状态,包含时间(微秒)、调用次数、吞吐量(字节)。通过该字段可以分析SQL在分布式系统下的网络开销,单机模式下不支持该字段。例如:{"time":xxx, "n_calls":xxx, "size":xxx}。 - |
-
- | -- | -通过逻辑连接接收消息的网络状态,包含时间(微秒)、调用次数、吞吐量(字节)。通过该字段可以分析SQL在分布式系统下的网络开销,单机模式下不支持该字段。例如:{"time":xxx, "n_calls":xxx, "size":xxx}。 - |
-
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -- | -
- | -- | -语句锁事件的列表,该列表按时间书序记录事件,记录的数量受参数track_stmt_details_size的影响。 - -
|
-
- | -- | -- | -
+ | ++ | ++ | +
---|---|---|
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | +软解析次数,n_soft_parse + n_hard_parse可能大于n_calls,因为子查询未计入n_calls。 + |
+
+ | ++ | +硬解析次数,n_soft_parse + n_hard_parse可能大于n_calls,因为子查询未计入n_calls。 + |
+
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | +通过物理连接发送消息的网络状态,包含时间(微秒)、调用次数、吞吐量(字节)。通过该字段可以分析SQL在分布式系统下的网络开销,单机模式下不支持该字段。例如:{"time":xxx, "n_calls":xxx, "size":xxx}。 + |
+
+ | ++ | +通过物理连接接收消息的网络状态,包含时间(微秒)、调用次数、吞吐量(字节)。通过该字段可以分析SQL在分布式系统下的网络开销,单机模式下不支持该字段。例如:{"time":xxx, "n_calls":xxx, "size":xxx}。 + |
+
+ | ++ | +通过逻辑连接发送消息的网络状态,包含时间(微秒)、调用次数、吞吐量(字节)。通过该字段可以分析SQL在分布式系统下的网络开销,单机模式下不支持该字段。例如:{"time":xxx, "n_calls":xxx, "size":xxx}。 + |
+
+ | ++ | +通过逻辑连接接收消息的网络状态,包含时间(微秒)、调用次数、吞吐量(字节)。通过该字段可以分析SQL在分布式系统下的网络开销,单机模式下不支持该字段。例如:{"time":xxx, "n_calls":xxx, "size":xxx}。 + |
+
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | ++ | +
+ | ++ | +语句锁事件的列表,该列表按时间书序记录事件,记录的数量受参数track_stmt_details_size的影响。 + +
|
+
+ | ++ | ++ | +