Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added CN/modules/ROOT/images/media/image10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image33.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added CN/modules/ROOT/images/media/image34.png
Binary file added CN/modules/ROOT/images/media/image35.png
Binary file added CN/modules/ROOT/images/media/image36.jpeg
Binary file added CN/modules/ROOT/images/media/image37.png
Binary file added CN/modules/ROOT/images/media/image38.jpeg
Binary file added CN/modules/ROOT/images/media/image39.png
Binary file added CN/modules/ROOT/images/media/image4.png
Binary file added CN/modules/ROOT/images/media/image40.png
Binary file added CN/modules/ROOT/images/media/image41.png
Binary file added CN/modules/ROOT/images/media/image42.png
Binary file added CN/modules/ROOT/images/media/image43.png
Binary file added CN/modules/ROOT/images/media/image44.png
Binary file added CN/modules/ROOT/images/media/image45.jpeg
Binary file added CN/modules/ROOT/images/media/image46.png
Binary file added CN/modules/ROOT/images/media/image47.png
Binary file added CN/modules/ROOT/images/media/image5.png
Binary file added CN/modules/ROOT/images/media/image6.png
Binary file added CN/modules/ROOT/images/media/image7.png
Binary file added CN/modules/ROOT/images/media/image8.png
Binary file added CN/modules/ROOT/images/media/image9.png
9 changes: 8 additions & 1 deletion CN/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@
** IvorySQL高级
*** xref:master/4.1.adoc[安装指南]
*** xref:master/4.2.adoc[集群搭建]
*** xref:master/4.5.adoc[迁移指南]
*** xref:master/4.3.adoc[开发者指南]
*** 容器化指南
**** xref:master/4.6.1.adoc[K8S部署]
**** xref:master/4.6.2.adoc[Operator部署]
**** xref:master/4.6.3.adoc[Docker Swarm & Docker Compose部署]
*** xref:master/4.4.adoc[运维管理指南]
*** xref:master/4.5.adoc[迁移指南]
*** 云服务平台指南
**** xref:master/4.7.1.adoc[IvorySQL Cloud安装]
**** xref:master/4.7.2.adoc[IvorySQL Cloud使用]
** IvorySQL生态
*** xref:master/cpu_arch_adp.adoc[芯片架构适配]
*** xref:master/os_arch_adp.adoc[操作系统适配]
Expand Down
12 changes: 6 additions & 6 deletions CN/modules/ROOT/pages/master/1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
[**发行日期:2025年06月04日**]


IvorySQL 4.5,基于PostgreSQL 17.5,并修复了多个问题。有关更新的完整列表,请访问我们的 https://docs.ivorysql.org/[文档网站] 。
IvorySQL 5.0,基于PostgreSQL 18.0,并修复了多个问题。有关更新的完整列表,请访问我们的 https://docs.ivorysql.org/[文档网站] 。

== 增强功能及问题修复

- PostgreSQL 17.5
- PostgreSQL 18.0

1. 修复了在检查声明为 GB18030 编码的无效字符串时,可能发生的一字节缓冲区超读(one-byte buffer overread)问题,增强了系统处理无效编码数据的稳健性。
2. 确保对分区表上存在的自引用外键(self-referential foreign keys)进行正确处理,提升了复杂数据结构下分区表的可靠性。
Expand All @@ -21,17 +21,17 @@ IvorySQL 4.5,基于PostgreSQL 17.5,并修复了多个问题。有关更新

+

更多细节, 请参阅 https://www.postgresql.org/docs/release/17.5/[PostgreSQL发布说明].
更多细节, 请参阅 https://www.postgresql.org/docs/release/18.0/[PostgreSQL发布说明].

- IvorySQL 4.5
- IvorySQL 5.0

1. MIPS 全平台打包支持:特性 https://github.com/IvorySQL/IvorySQL/issues/736[#736]
+
为 MIPS 架构提供多平台介质包,支持国内外主流操作系统,包括 Red Hat、Debian、麒麟、UOS、凝思等。

2. 新增IvorySQL 在线体验平台:特性 https://github.com/IvorySQL/ivorysql-wasm/issues/1[#1]
+
提供一个基于 Web 的平台,用户可直接通过浏览器界面在线体验 IvorySQL V4.5 并进行数据库交互。
提供一个基于 Web 的平台,用户可直接通过浏览器界面在线体验 IvorySQL V5.0 并进行数据库交互。

3. 新增社区行为准则:特性 https://github.com/IvorySQL/IvorySQL/issues/808[#808]
+
Expand All @@ -47,7 +47,7 @@ IvorySQL 4.5,基于PostgreSQL 17.5,并修复了多个问题。有关更新

6. 改进贡献者工作流程,通过 /assign 命令自我分配任务:特性 https://github.com/IvorySQL/ivorysql_docs/issues/109[#109]

7. IvorySQL Operator V4 适配 IvorySQL 4.5:特性 https://github.com/IvorySQL/ivory-operator/pull/79[#79]
7. IvorySQL Operator V4 适配 IvorySQL 5.0:特性 https://github.com/IvorySQL/ivory-operator/pull/79[#79]

== 源代码

Expand Down
4 changes: 2 additions & 2 deletions CN/modules/ROOT/pages/master/100.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,7 @@ h| 参数名称 h| max_connections
| 默认值 | 100
| 取值范围 | 1到262143
| 参数单位 |
| 参数含义 | 本参数值指定了PostgreSQL数据库的最大连接数。本参数只能在PostgreSQL启动时设置。在流复制备库上,必须将本参数值设置为与主库相同或者比主库参数值大,否则,备用服务器将不允许查询操作
| 参数含义 | 本参数值指定了PostgreSQL数据库的最大连接数。本参数只能在PostgreSQL启动时设置。在流复制备库上,必须将本参数值设置为与主库相同或者比主库参数值大,否则,后备服务器将不允许查询操作
| 是否可session级修改 | 否
| 修改后何时生效 | 重启PG instance生效

Expand Down Expand Up @@ -2442,7 +2442,7 @@ h| 参数名称 h| max_standby_streaming_delay
| 默认值 | 30000
| 取值范围 | -1到2147483647,-1表示允许standby server一直在等待直到冲突的query执行完毕。
| 参数单位 | 毫秒
| 参数含义 | 本参数为备库参数,本参数在sending-server端会被忽略。当hot standby在被启用的状态下,本参数决定了standby server在取消掉standby中运行的且与WAL日志应用有冲突的查询语句之前的等待时间。本参数适用于wal data通过流复制被接收的情况。当不指定单位时,本参数的单位是毫秒。本参数仅能在postgresql.conf文件或者server command line中设置。本参数值与查询语句在取消之前可以运行的最长时间不同。相反,本参数值是从主服务器接收到WAL数据后允许应用该数据的最长总时间,因此,如果一个查询导致了显著的延迟,那么在备用服务器再次赶上之前,后续冲突查询的容忍时间(宽限时间)将少得多
| 参数含义 | 本参数为备库参数,本参数在sending-server端会被忽略。当hot standby在被启用的状态下,本参数决定了standby server在取消掉standby中运行的且与WAL日志应用有冲突的查询语句之前的等待时间。本参数适用于wal data通过流复制被接收的情况。当不指定单位时,本参数的单位是毫秒。本参数仅能在postgresql.conf文件或者server command line中设置。本参数值与查询语句在取消之前可以运行的最长时间不同。相反,本参数值是从主服务器接收到WAL数据后允许应用该数据的最长总时间,因此,如果一个查询导致了显著的延迟,那么在后备服务器再次赶上之前,后续冲突查询的容忍时间(宽限时间)将少得多
| 是否可session级修改 | 否
| 修改后何时生效 | Reload即可生效

Expand Down
26 changes: 13 additions & 13 deletions CN/modules/ROOT/pages/master/2.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ IvorySQL是一个功能强大的开源对象关系数据库管理系统(ORDBMS)

== 与Oracle的兼容性

* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/14[ivorysql框架设计]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/15[GUC框架]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/16[大小写转换]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/17[双模式设计]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/18[兼容Oracle like]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/19[兼容Oracle匿名块]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/20[兼容Oracle函数与存储过程]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/21[内置数据类型与内置函数]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/22[新增Oracle兼容模式的端口与IP]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/26[XML函数]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/27[兼容Oracle sequence]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/28[包]
* https://docs.ivorysql.org/cn/ivorysql-doc/v4.5/v4.5/29[不可见列]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/14[ivorysql框架设计]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/15[GUC框架]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/16[大小写转换]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/17[双模式设计]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/18[兼容Oracle like]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/19[兼容Oracle匿名块]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/20[兼容Oracle函数与存储过程]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/21[内置数据类型与内置函数]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/22[新增Oracle兼容模式的端口与IP]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/26[XML函数]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/27[兼容Oracle sequence]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/28[包]
* https://docs.ivorysql.org/cn/ivorysql-doc/v5.0/v5.0/29[不可见列]
2 changes: 1 addition & 1 deletion CN/modules/ROOT/pages/master/23.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ IvorySQL由一个核心开发团队维护,该团队拥有对GitHub上的IvoryS

== **贡献者指南**

在贡献之前,我们需要了解下IvorySQL目前的版本以及文档的版本。目前,我们维护着4.5等版本,我们的版本紧跟PG的更新步伐,贡献之前请更新至最新版本。之后我们需要细心浏览一下贡献的样式风格,熟悉代码贡献风格、提Issue样式、拉取PR标题样式、代码注释样式、文档贡献样式、文章贡献样式,这可以帮助您尽快成为IvorySQL的贡献者奥~。
在贡献之前,我们需要了解下IvorySQL目前的版本以及文档的版本。目前,我们维护着5.0等版本,我们的版本紧跟PG的更新步伐,贡献之前请更新至最新版本。之后我们需要细心浏览一下贡献的样式风格,熟悉代码贡献风格、提Issue样式、拉取PR标题样式、代码注释样式、文档贡献样式、文章贡献样式,这可以帮助您尽快成为IvorySQL的贡献者奥~。

=== 贡献前的准备

Expand Down
26 changes: 13 additions & 13 deletions CN/modules/ROOT/pages/master/3.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ gpgcheck=0
```
保存退出后,安装IvorySQL4
```
$ sudo dnf install -y IvorySQL-4.5
$ sudo dnf install -y IvorySQL-5.0
```
....

正确安装后,数据库将被安装在/opt/IvorySQL-4.5/路径下的IvorySQL-version(如:IvorySQL-4.5)文件夹内
正确安装后,数据库将被安装在/opt/IvorySQL-5.0/路径下的IvorySQL-version(如:IvorySQL-5.0)文件夹内
....

执行以下命令为ivorysql用户赋权:
```
$ sudo chown -R ivorysql:ivorysql /opt/IvorySQL-4.5
$ sudo chown -R ivorysql:ivorysql /opt/IvorySQL-5.0
```
[[配置环境变量]]
** 配置环境变量
Expand All @@ -70,9 +70,9 @@ $ sudo chown -R ivorysql:ivorysql /opt/IvorySQL-4.5

将以下配置写入~/.bash_profile文件并使用source命令该文件使环境变量生效:
```
PATH=/opt/IvorySQL-4.5/bin:$PATH
PATH=/opt/IvorySQL-5.0/bin:$PATH
export PATH
PGDATA=/opt/IvorySQL-4.5/data
PGDATA=/opt/IvorySQL-5.0/data
export PGDATA
```
```
Expand All @@ -82,7 +82,7 @@ $ source ~/.bash_profile
** 数据库初始化

```
$ initdb -D /opt/IvorySQL-4.5/data
$ initdb -D /opt/IvorySQL-5.0/data
```
....
其中-D参数用来指定数据库的数据目录。更多参数使用方法,请使用initdb --help命令获取。
Expand All @@ -91,16 +91,16 @@ $ initdb -D /opt/IvorySQL-4.5/data
** 启动数据库服务

```
$ pg_ctl -D /opt/IvorySQL-4.5/data -l ivory.log start
$ pg_ctl -D /opt/IvorySQL-5.0/data -l ivory.log start
```

其中-D参数用来指定数据库的数据目录,如果<<配置环境变量>> 配置了PGDATA,则该参数可以省略。-l参数用来指定日志目录。更多参数使用方法,请使用pg_ctl --help命令获取。
其中-D参数用来指定数据库的数据目录,如果<<配置环境变量>> 配置了PGDATA,则该参数可以省略。-l参数用来指定日志文件。更多参数使用方法,请使用pg_ctl --help命令获取。


查看确认数据库启动成功:
```
$ ps -ef | grep postgres
ivorysql 3214 1 0 20:35 ? 00:00:00 /opt/IvorySQL-4.5/bin/postgres -D /opt/IvorySQL-4.5/data
ivorysql 3214 1 0 20:35 ? 00:00:00 /opt/IvorySQL-5.0/bin/postgres -D /opt/IvorySQL-5.0/data
ivorysql 3215 3214 0 20:35 ? 00:00:00 postgres: checkpointer
ivorysql 3216 3214 0 20:35 ? 00:00:00 postgres: background writer
ivorysql 3218 3214 0 20:35 ? 00:00:00 postgres: walwriter
Expand All @@ -113,27 +113,27 @@ ivorysql 3238 1551 0 20:35 pts/0 00:00:00 grep --color=auto postgres

** 从Docker Hub上获取IvorySQL镜像
```
$ docker pull ivorysql/ivorysql:4.5-ubi8
$ docker pull ivorysql/ivorysql:5.0-ubi8
```

** 运行IvorySQL
```
$ docker run --name ivorysql -p 5434:5432 -e IVORYSQL_PASSWORD=your_password -d ivorysql/ivorysql:4.5-ubi8
$ docker run --name ivorysql -p 5434:5432 -e IVORYSQL_PASSWORD=your_password -d ivorysql/ivorysql:5.0-ubi8
```

** 查看IvorySQL容器运行是否成功
```
$ docker ps | grep ivorysql
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6faa2d0ed705 ivorysql:4.5-ubi8 "docker-entrypoint.s…" 50 seconds ago Up 49 seconds 5866/tcp, 0.0.0.0:5434->5432/tcp ivorysql
6faa2d0ed705 ivorysql:5.0-ubi8 "docker-entrypoint.s…" 50 seconds ago Up 49 seconds 5866/tcp, 0.0.0.0:5434->5432/tcp ivorysql
```

== 数据库连接

psql连接数据库:
```
$ psql -d <database>
psql (17.5)
psql (18.0)
Type "help" for help.

ivorysql=#
Expand Down
Loading