diff --git a/product/en/docs-mogdb/v3.1/developer-guide/dev/1-development-specifications.md b/product/en/docs-mogdb/v3.1/developer-guide/dev/1-development-specifications.md index f10d7ebf4d54d87124c8d11b450c53461fc2e2c3..b566244012c03e9d7e6718c145f8d3e3b63b5742 100644 --- a/product/en/docs-mogdb/v3.1/developer-guide/dev/1-development-specifications.md +++ b/product/en/docs-mogdb/v3.1/developer-guide/dev/1-development-specifications.md @@ -681,8 +681,6 @@ During the development, MogDB supports only the timestamp[(p )][with time zone] #### JSON Type -MogDB supports only the JSON type. - | Type | PostgreSQL | MogDB | Storage Length | Remarks | | :---- | :--------- | :-------------------------- | :------------- | :------ | | json | Supported | Supported | / | | diff --git a/product/en/docs-mogdb/v3.1/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md b/product/en/docs-mogdb/v3.1/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md index 6b62140ec834a20d5a273bcb6839386a3cffcd66..cfbf5f125f2a1c343aab42173c9e8ce1d795ff21 100644 --- a/product/en/docs-mogdb/v3.1/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md +++ b/product/en/docs-mogdb/v3.1/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md @@ -51,7 +51,7 @@ gs_guc reload -Z datanode -N @NODE_NAME@ -D @DN_PATH@ -c "synchronous_standby_na **Parameter description**: Specifies whether to block the primary server when the primary-standby synchronization fails. -This parameter is a POSTMASTER parameter. Set it based on instructions provided in Table 1 [GUC parameters](../../../reference-guide/guc-parameters/30-appendix.md). +This parameter is a SIGHUP parameter. Set it based on instructions provided in Table 1 [GUC parameters](../../../reference-guide/guc-parameters/30-appendix.md). **Value range**: Boolean diff --git a/product/en/docs-mogdb/v3.1/reference-guide/supported-data-types/12-json-types.md b/product/en/docs-mogdb/v3.1/reference-guide/supported-data-types/12-json-types.md index 8d7bdd58dcff79c682e962e18d47f59823584832..07a84c5864dec8f324587dba1be7324b5bf1e5ef 100644 --- a/product/en/docs-mogdb/v3.1/reference-guide/supported-data-types/12-json-types.md +++ b/product/en/docs-mogdb/v3.1/reference-guide/supported-data-types/12-json-types.md @@ -76,23 +76,31 @@ The main difference between JSON and JSONB lies in the storage mode. JSONB store - After the input object-json string is parsed into JSONB binary, semantically irrelevant details are naturally discarded, for example, spaces: ```sql - MogDB=# select ' [1, " a ", {"a" :1 }] '::jsonb; jsonb + MogDB=# select ' [1, " a ", {"a" :1 }] '::jsonb; + jsonb ---------------------- - [1, " a ", {"a": 1}](1 row) + [1, " a ", {"a": 1}] + (1 row) ``` - For object-json, duplicate key-values are deleted and only the last key-value is retained. For example: ```sql - MogDB=# select '{"a" : 1, "a" : 2}'::jsonb; jsonb---------- {"a": 2}(1 row) + MogDB=# select '{"a" : 1, "a" : 2}'::jsonb; + jsonb + ---------- + {"a": 2} + (1 row) ``` - For object-json, key-values will be re-sorted. The sorting rule is as follows: 1. Longer key-values are sorted last. 2. If the key-values are of the same length, the key-values with a larger ASCII code are sorted after the key-values with a smaller ASCII code: ```sql - MogDB=# select '{"aa" : 1, "b" : 2, "a" : 3}'::jsonb; jsonb + MogDB=# select '{"aa" : 1, "b" : 2, "a" : 3}'::jsonb; + jsonb --------------------------- - {"a": 3, "b": 2, "aa": 1}(1 row) + {"a": 3, "b": 2, "aa": 1} + (1 row) ``` - Size comparison diff --git a/product/zh/docs-mogdb/v3.1/developer-guide/dev/development-specifications/postgresql-compatibility.md b/product/zh/docs-mogdb/v3.1/developer-guide/dev/development-specifications/postgresql-compatibility.md index 92f95edb29fc26714d0c15d229b1bfccb5179063..0b5eb846933b93125e1baad8ecd52f4a76641b8f 100644 --- a/product/zh/docs-mogdb/v3.1/developer-guide/dev/development-specifications/postgresql-compatibility.md +++ b/product/zh/docs-mogdb/v3.1/developer-guide/dev/development-specifications/postgresql-compatibility.md @@ -76,8 +76,6 @@ create database dbnam DBCOMPATIBILITY='PG' encoding=’utf8’; ### json类型 -MogDB只允许使用json类型。 - | 类型 | PostgreSQL | MogDB | 存储尺寸 | 备注 | | ----- | ---------- | ----------- | -------- | ---- | | json | 支持 | 支持 | / | | diff --git a/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md b/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md index e7f1d38d21608b6e7b8e95b55936c6d24fde8334..80f67505554695e7ad95db75bb04483868310d3c 100644 --- a/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md +++ b/product/zh/docs-mogdb/v3.1/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md @@ -60,7 +60,7 @@ date: 2021-04-20 **参数说明**: 在有同步备机故障时,主机事务不因同步备机故障而被阻塞。比如有两个同步备机,一个故障,另一个正常,这个时候主机事务只会等好的这个同步备,而不被故障的同步备所阻塞; 再比如走quroum协议时,一主三同步备,配置ANY 2(node1,node2,node3),当node1、node3故障,node2正常时,主机业务同样不被阻塞。 -该参数属于POSTMASTER类型参数,请参考表[GUC参数分类](../../../reference-guide/guc-parameters/30-appendix.md)中对应设置方法进行设置。 +该参数属于SIGHUP类型参数,请参考表[GUC参数分类](../../../reference-guide/guc-parameters/30-appendix.md)中对应设置方法进行设置。 **取值范围**: 布尔型 diff --git a/product/zh/docs-mogdb/v3.1/reference-guide/supported-data-types/12-json-types.md b/product/zh/docs-mogdb/v3.1/reference-guide/supported-data-types/12-json-types.md index f158bee43ba6c10bf25f063f3cf302caf8fcc6ba..a92b8ea4e939019d7cbca3808f72d9c1e4120e99 100644 --- a/product/zh/docs-mogdb/v3.1/reference-guide/supported-data-types/12-json-types.md +++ b/product/zh/docs-mogdb/v3.1/reference-guide/supported-data-types/12-json-types.md @@ -76,24 +76,32 @@ JSON和JSONB的主要差异在于存储方式上的不同,JSONB存储的是解 - 对于输入的object-json字符串,解析成jsonb二进制后,会天然的丢弃语义上无关紧要的细节,比如空格: - ``` - MogDB=# select ' [1, " a ", {"a" :1 }] '::jsonb; jsonb + ```sql + MogDB=# select ' [1, " a ", {"a" :1 }] '::jsonb; + jsonb ---------------------- - [1, " a ", {"a": 1}](1 row) + [1, " a ", {"a": 1}] + (1 row) ``` - 对于object-json,会删除重复的键值,只保留最后一个出现的,如: - ``` - MogDB=# select '{"a" : 1, "a" : 2}'::jsonb; jsonb---------- {"a": 2}(1 row) + ```sql + MogDB=# select '{"a" : 1, "a" : 2}'::jsonb; + jsonb + ---------- + {"a": 2} + (1 row) ``` - 对于object-json,键值会重新进行排序,排序规则:长度长的在后、长度相等则ascii码大的在后,如: - ``` - MogDB=# select '{"aa" : 1, "b" : 2, "a" : 3}'::jsonb; jsonb + ```sql + MogDB=# select '{"aa" : 1, "b" : 2, "a" : 3}'::jsonb; + jsonb --------------------------- - {"a": 3, "b": 2, "aa": 1}(1 row) + {"a": 3, "b": 2, "aa": 1} + (1 row) ``` - 大小比较