Skip to content

Commit a7da7dc

Browse files
authored
Add datetime ignore nls mask demo (#66)
* add PostGIS installation docs * TOC number changed & version content updated * change release notes & release date * add xml function feature & fixed 16-17 feature * add datetime_ignore_nls_mask demo * release notes & contributor list updating
1 parent 1ed08e5 commit a7da7dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1701
-393
lines changed

CN/antora.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: ivorysql-doc
22
title: IvorySQL
3-
version: v3.1
4-
start_page: v3.1/welcome.adoc
3+
version: v3.2
4+
start_page: v3.2/welcome.adoc
55
asciidoc:
66
attributes:
77
source-language: asciidoc@

CN/modules/ROOT/nav.adoc

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
* xref:v3.1/welcome.adoc[欢迎]
2-
* xref:v3.1/1.adoc[发行说明]
3-
* xref:v3.1/2.adoc[关于IvorySQL]
1+
* xref:v3.2/welcome.adoc[欢迎]
2+
* xref:v3.2/1.adoc[发行说明]
3+
* xref:v3.2/2.adoc[关于IvorySQL]
44
* IvorySQL入门
5-
** xref:v3.1/3.adoc[快速开始]
6-
** xref:v3.1/4.adoc[日常监控]
7-
** xref:v3.1/5.adoc[日常维护]
5+
** xref:v3.2/3.adoc[快速开始]
6+
** xref:v3.2/4.adoc[日常监控]
7+
** xref:v3.2/5.adoc[日常维护]
88
* IvorySQL高级
9-
** xref:v3.1/6.adoc[安装指南]
10-
** xref:v3.1/7.adoc[集群搭建]
11-
** xref:v3.1/8.adoc[开发者指南]
12-
** xref:v3.1/9.adoc[运维管理指南]
13-
** xref:v3.1/10.adoc[迁移指南]
9+
** xref:v3.2/6.adoc[安装指南]
10+
** xref:v3.2/7.adoc[集群搭建]
11+
** xref:v3.2/8.adoc[开发者指南]
12+
** xref:v3.2/9.adoc[运维管理指南]
13+
** xref:v3.2/10.adoc[迁移指南]
14+
* IvorySQL生态
15+
** xref:v3.2/11.adoc[PostGIS]
1416
* 功能列表
15-
** xref:v3.1/11.adoc[1、框架设计]
16-
** xref:v3.1/12.adoc[2、GUC框架]
17-
** xref:v3.1/13.adoc[3、大小写转换]
18-
** xref:v3.1/14.adoc[4、双模式设计]
19-
** xref:v3.1/15.adoc[5、兼容Oracle like]
20-
** xref:v3.1/16.adoc[6、兼容Oracle匿名块]
21-
** xref:v3.1/17.adoc[7、兼容Oracle函数与存储过程]
22-
** xref:v3.1/18.adoc[8、内置数据类型与内置函数]
23-
** xref:v3.1/19.adoc[9、新增Oracle兼容模式的端口与IP]
24-
* xref:v3.1/20.adoc[社区贡献指南]
25-
* xref:v3.1/21.adoc[工具参考]
26-
* xref:v3.1/22.adoc[FAQ]
27-
17+
** xref:v3.2/14.adoc[1、框架设计]
18+
** xref:v3.2/15.adoc[2、GUC框架]
19+
** xref:v3.2/16.adoc[3、大小写转换]
20+
** xref:v3.2/17.adoc[4、双模式设计]
21+
** xref:v3.2/18.adoc[5、兼容Oracle like]
22+
** xref:v3.2/19.adoc[6、兼容Oracle匿名块]
23+
** xref:v3.2/20.adoc[7、兼容Oracle函数与存储过程]
24+
** xref:v3.2/21.adoc[8、内置数据类型与内置函数]
25+
** xref:v3.2/22.adoc[9、新增Oracle兼容模式的端口与IP]
26+
** xref:v3.2/26.adoc[10、XML函数]
27+
* xref:v3.2/23.adoc[社区贡献指南]
28+
* xref:v3.2/24.adoc[工具参考]
29+
* xref:v3.2/25.adoc[FAQ]

CN/modules/ROOT/pages/v3.1/1.adoc

Lines changed: 0 additions & 60 deletions
This file was deleted.

CN/modules/ROOT/pages/v3.1/13.adoc

Lines changed: 0 additions & 65 deletions
This file was deleted.

CN/modules/ROOT/pages/v3.2/1.adoc

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
:sectnums:
2+
:sectnumlevels: 5
3+
4+
5+
== 版本概览
6+
7+
[**发行日期:2024年4月11日**]
8+
9+
10+
IvorySQL 3.2基于PostgreSQL 16.2,引入了Oracle XML函数兼容性功能,同时修复了多个问题。更多信息请参考 https://docs.ivorysql.org/[文档网站] 。
11+
12+
== 增强功能
13+
14+
- Oracle XML函数兼容性
15+
16+
+
17+
18+
该功能整合了对各种Oracle XML函数的兼容性,包括APPENDCHILDXML、DELETEXML、EXISTSNODE、EXTRACT(XML)、EXTRACTVALUE、INSERTCHILDXMLAFTER、INSERTCHILDXMLBEFORE、INSERTCHILDXML、INSERTXMLAFTER、INSERTXMLBEFORE、UPDATEXML,有关该功能的更多细节,请查看 https://github.com/IvorySQL/IvorySQL/issues/587[#587]
19+
20+
- PostgreSQL 16.2 的增强功能
21+
22+
1. 确保CREATE DATABASE的持久性
23+
2. 确保pgoutput逻辑复制插件正确传输列的默认值
24+
3. 在使用之前重新验证订阅的连接字符串
25+
4. 当新客户端在不响应服务器的密码挑战时断开连接时,返回正确的状态代码
26+
5. 在PL/pgSQL中支持具有SQL标准体的CREATE FUNCTION/CREATE PROCEDURE的SQL命令
27+
28+
+
29+
30+
更多细节, 请参阅 https://www.postgresql.org/docs/release/16.2/[PostgreSQL发布说明].
31+
32+
33+
== 问题修复
34+
35+
- 解决了文档构建失败的问题: https://github.com/IvorySQL/IvorySQL/issues/645[#645]
36+
- 消除了构建警告: https://github.com/IvorySQL/IvorySQL/issues/649[#649]
37+
- 修正了 to_date 函数的参数问题: https://github.com/IvorySQL/IvorySQL/issues/592[#592]
38+
- 修复了在创建函数时的标签问题: https://github.com/IvorySQL/IvorySQL/issues/624[#624]
39+
40+
== 源代码
41+
42+
IvorySQL主要包含2个代码仓库:
43+
44+
* IvorySQL数据库源码: https://github.com/IvorySQL/IvorySQL
45+
* IvorySQL官方网站: https://github.com/IvorySQL/Ivory-www
46+
47+
== 贡献人员
48+
以下个人(按姓氏排序)作为补丁作者、提交者、审查者、测试者或问题报告者为此版本做出了贡献。
49+
50+
- Cary Huang
51+
- David Zhang
52+
- Grant Zhou
53+
- Leo X.M. Zeng
54+
- 付贝
55+
- 高雪玉
56+
- 郭新源
57+
- 黄迎
58+
- 贾楠
59+
- 矫顺田
60+
- 李永昊
61+
- 梁翔宇
62+
- 刘政
63+
- 吕新杰
64+
- 牛世继
65+
- 任娇
66+
- 阮秀华
67+
- 尚雷
68+
- 王丽
69+
- 王守波
70+
- 严少安

CN/modules/ROOT/pages/v3.2/11.adoc

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
2+
:sectnums:
3+
:sectnumlevels: 5
4+
5+
= PostGIS
6+
7+
== 概述
8+
IvorySQL原生100%兼容PostgreSQL,因此,PostGIS可以完美适配IvorySQL。
9+
10+
== 安装
11+
根据开发环境,用户可从 https://postgis.net/documentation/getting_started/#installing-postgis[PostGIS安装] 页面选择适合自己的方式进行安装PostGIS安装。
12+
13+
=== 源码安装
14+
除PostGIS社区提供的安装方式以外,IvorySQL社区也提供了源码安装方式,源码安装环境为 CentOS 7.9(x86_64)。
15+
16+
[NOTE]
17+
请确保环境中已安装了**IvorySQL3.0及以上版本**
18+
19+
** 安装依赖
20+
```
21+
yum install -y gcc gcc-c++ libtiff libtiff-devel.x86_64 libcurl-devel.x86_64 libtool libxml2-devel redhat-rpm-config clang llvm geos311 automake protobuf-c-devel
22+
```
23+
24+
** 安装SQLITE
25+
```
26+
$ wget https://www.sqlite.org/2022/sqlite-autoconf-3400000.tar.gz
27+
$ tar -xvf sqlite-autoconf-3400000.tar.gz
28+
$ cd sqlite-autoconf-3400000
29+
$ sed -n '1i\#define SQLITE_ENABLE_COLUMN_METADATA 1' sqlite3.c
30+
$ ./configure --prefix=/usr/local/sqlite
31+
$ make && make install
32+
$ rm usr/bin/sqlite3 && ln -s /usr/local/sqlite/bin/sqlite3 /usr/bin/sqlite3
33+
$ sqlite3 -version
34+
$ export PKG_CONFIG_PATH=/usr/local/sqlite/lib/pkgconfig:$PKG_CONFIG_PATH
35+
```
36+
37+
** 安装PROJ
38+
```
39+
$ wget https://download.osgeo.org/proj/proj-8.2.1.tar.gz
40+
$ tar -xvf proj-8.2.1.tar.gz
41+
$ cd proj-8.2.1
42+
$ ./configure --prefix=/usr/local/proj-8.2.1
43+
$ make && make install
44+
```
45+
46+
** 安装 GDAL
47+
```
48+
$ wget https://github.com/OSGeo/gdal/releases/download/v3.4.3/gdal-3.4.3.tar.gz
49+
$ tar -xvf gdal-3.4.3.tar.gz
50+
$ cd gdal-3.4.3
51+
$ sh autogen.sh
52+
$ ./configure --prefix=/usr/local/gdal-3.4.3 --with-proj=/usr/local/proj-8.2.1
53+
$ make && make install
54+
```
55+
56+
** 安装 GEOS
57+
```
58+
$ wget https://download.osgeo.org/geos/geos-3.9.2.tar.bz2
59+
$ tar -xvf geos-3.9.2.tar.bz2
60+
$ cd geos-3.9.2
61+
$ ./configure --prefix=/usr/local/geos-3.9.2
62+
$ make && make install
63+
```
64+
65+
** 安装 Protobuf
66+
```
67+
$ wget https://plug-neomirror.rcac.purdue.edu/adelie/source/archive/protobuf-3.20.1/protobuf-3.20.1.tar.gz
68+
$ tar -xvf protobuf-3.20.1.tar.gz
69+
$ cd protobuf-3.20.1
70+
$ sh autogen.sh
71+
$ ./configure  --prefix=/usr/local/protobuf-3.20.1
72+
$ make && make install
73+
$ export PROTOBUF_HOME=/usr/local/protobuf-3.20.1
74+
$ export PATH=$PROTOBUF_HOME/bin:$PATH
75+
$ export PKG_CONFIG_PATH=$PROTOBUF_HOME/lib/pkgconfig:$PKG_CONFIG_PATH
76+
```
77+
78+
** 安装 Protobuf-c
79+
```
80+
$ wget --no-check-certificate https://sources.buildroot.net/protobuf-c/protobuf-c-1.4.1.tar.gz
81+
$ tar -xvf protobuf-c-1.4.1.tar.gz
82+
$ cd protobuf-c-1.4.1
83+
$ ./configure --prefix=/usr/local/protobuf-c-1.4.1
84+
$ make && make install
85+
$ export PROTOBUFC_HOME=/usr/local/protobuf-c-1.4.1
86+
$ export PATH=$PROTOBUF_HOME/bin:$PROTOBUFC_HOME/bin:$PATH
87+
$ export PKG_CONFIG_PATH=$PROTOBUFC_HOME/lib:$PKG_CONFIG_PATH
88+
```
89+
90+
** 安装 PostGIS
91+
```
92+
$ wget https://download.osgeo.org/postgis/source/postgis-3.4.0.tar.gz
93+
$ tar -xvf postgis-3.4.0.tar.gz
94+
$ cd postgis-3.4.0
95+
$ sh autogen.sh
96+
$ ./configure --with-geosconfig=/usr/local/geos-3.9.2/bin/geos-config --with-projdir=/usr/local/proj-8.2.1 --with-gdalconfig=/usr/local/gdal-3.4.3/bin/gdal-config --with-protobufdir=/usr/local/protobuf-c-1.4.1 --with-pgconfig=/usr/local/ivorysql/ivorysql-3/bin/pg_config
97+
$ make && make install
98+
```
99+
[TIP]
100+
如出现PGXS报错, 请根据环境中IvorySQL安装路径, 修改--with-pgconfig的参数值。
101+
102+
== 创建Extension并确认PostGIS版本
103+
104+
psql 连接到数据库,执行如下命令:
105+
```
106+
ivorysql=# CREATE extension postgis;
107+
CREATE EXTENSION
108+
109+
ivorysql=# SELECT * FROM pg_available_extensions WHERE name = 'postgis';
110+
name | default_version | installed_version | comment
111+
---------+-----------------+-------------------+------------------------------------------------------------
112+
postgis | 3.4.0 | 3.4.0 | PostGIS geometry and geography spatial types and functions
113+
(1 row)
114+
```
115+
116+
== 使用
117+
关于PostGIS的使用,请参阅 https://postgis.net/docs/manual-3.4[PostGIS3.4官方文档]

0 commit comments

Comments
 (0)