From 957f5f1b573a5c134b85e504925d2c11c1b4403f Mon Sep 17 00:00:00 2001 From: pengjiong Date: Fri, 5 Nov 2021 03:14:40 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contrib/db_b_parser/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/contrib/db_b_parser/README.md b/contrib/db_b_parser/README.md index 983f432d6..ae0acd94c 100644 --- a/contrib/db_b_parser/README.md +++ b/contrib/db_b_parser/README.md @@ -1,2 +1,20 @@ # db_b_parser +## 编译 +1. 下载代码,将db_b_parser源码拷贝到openGauss源码contrib目录下。 +2. 编译完openGauss后,单独编译插件:make && make install。 +## 使用 +1. 连接数据库,通过SQL命令加载插件。通过回显判断是否创建成功。 +```sql +create extension db_b_parser; +``` +2. 设置GUC参数启动对应解析器。 +```sql +set enable_csutom_parser = on; +``` +3. 测试兼容语句。 +## 备注 +数据库重启后需要重新加载插件。否则重启后插件无法功能。当前仅支持配置文件设置重启的方式加载。修改postgresql.conf的参数实现功能。 +```sql +shared_preload_libraries = 'db_b_parser' +``` \ No newline at end of file -- Gitee