From e92b5564039fb6d15b6ddb05bd31493df0b35bb9 Mon Sep 17 00:00:00 2001 From: pxq <1456889284@qq.com> Date: Sat, 15 Jul 2023 11:28:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:blog=E6=89=AB=E6=8F=8F=E6=96=AD=E9=93=BE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...openGauss-Under-Heterogeneous-Conditions.md | 14 -------------- ...-to-Migrate-Data-from-MySQL-to-openGauss.md | 2 +- ...nGauss-Database-Performance-Optimization.md | 2 +- ...3\206prometheus\346\225\260\346\215\256.md" | 2 +- ...47\232\204grafana-\347\232\204dashboard.md" | 2 +- ...243\344\272\233\344\272\213\345\204\277.md" | 4 ---- ...51\205\215Grafana\345\217\212Prometheus.md" | 4 ++-- ...257\345\242\203\351\205\215\347\275\256.md" | 4 ---- ...211\350\243\205\350\277\220\350\241\214.md" | 2 -- ...275\345\217\212\346\201\242\345\244\215.md" | 2 -- ...ss3\345\257\271\346\257\224postgresql12.md" | 4 ---- ...221\345\205\245\351\227\250\343\200\221.md" | 4 ---- ...242\345\256\236\350\267\265\343\200\221.md" | 3 --- ...241\347\256\241\347\220\206\345\231\250.md" | 14 +++++++------- ...tOS7.9\345\256\211\350\243\205openGauss.md" | 2 +- ...271\346\200\247\346\265\213\350\257\225.md" | 2 +- ...\257\221\346\224\257\346\214\201postgis.md" | 4 ++-- ...ation requires libpq version 10 or above.md | 2 -- ...213\345\212\277\351\242\204\346\265\213.md" | 4 ---- ...13\350\257\225\347\254\224\350\256\2601.md" | 2 -- ...6\225\260\346\215\256\351\233\206Mogila.md" | 2 -- ...51\224\231ERROR missing data for column.md" | 2 -- ...\350\277\236\346\216\245Mogdb openGauss.md" | 2 +- ...260\346\215\256\347\261\273\345\236\213.md" | 6 ------ ...214\345\210\227\350\275\254\346\215\242.md" | 1 - ...237\350\270\252\345\267\245\345\205\267.md" | 3 +-- ...205\344\270\216\344\275\277\347\224\250.md" | 18 ------------------ ...205\345\222\214\350\277\220\350\241\214.md" | 3 +-- ...273\345\244\207\346\234\272\347\276\244.md" | 2 -- .../2021-08-31_shardingSphere_for_openGauss.md | 6 ------ .../blogs/lihongda/Debezium-Adapt-openGauss.md | 11 +++-------- ...260\350\207\252\345\212\250\345\214\226.md" | 2 -- ...257\347\232\204\345\256\236\347\216\260.md" | 2 -- ...uss\346\225\260\346\215\256\345\272\223.md" | 2 +- ...200\347\257\207\345\215\232\345\256\242.md" | 2 +- app/zh/blogs/optimize/opengauss-optimize1.md | 2 +- app/zh/blogs/optimize/opengauss-tpcc.md | 2 +- ...217\350\256\256\350\256\277\351\227\256.md" | 2 +- ...15\256\345\272\223\350\207\263openGauss.md" | 2 -- .../wangrui/PowerDesigner_for_openGauss.md | 2 +- ...77\201\347\247\273\350\207\263openGauss.md" | 2 -- app/zh/blogs/xingchen/2020-06-01-start2.md | 8 ++++---- app/zh/blogs/xingchen/compile_without_lse.md | 2 +- ...247\350\203\275\345\257\271\346\257\224.md" | 4 ---- ...243\205\346\226\271\346\263\225(docker).md" | 4 ++-- app/zh/blogs/zhengxue/opengauss_compile.md | 6 ------ ...257\345\242\203\351\205\215\347\275\256.md" | 4 ---- 47 files changed, 36 insertions(+), 147 deletions(-) diff --git a/app/en/blogs/2022/Compilation-Guide-for-openGauss-Under-Heterogeneous-Conditions.md b/app/en/blogs/2022/Compilation-Guide-for-openGauss-Under-Heterogeneous-Conditions.md index a0b6ed18..a3be0f84 100644 --- a/app/en/blogs/2022/Compilation-Guide-for-openGauss-Under-Heterogeneous-Conditions.md +++ b/app/en/blogs/2022/Compilation-Guide-for-openGauss-Under-Heterogeneous-Conditions.md @@ -29,20 +29,6 @@ https://gitee.com/opengauss/openGauss-server/repository/archive/v2.0.0?ref=v2.0. opengauss-openGauss-third_party-2.0.0.zip \(source code package of all third-party libraries on which openGauss-server depends\) -**Download link:** - -https://gitee.com/opengauss/openGauss-third\_party/repository/archive/v2.0.0.zip?ref=v2.0.0&sha=3a38c6c134e5b2e39d0557d575ec04302a83584a&format=zip&captcha\_type=yunpian - -openGauss-third_party_binarylibs.tar.gz \(medium packages of all third-party libraries on which openGauss-server depends\) - -**Download link:** - -https://opengauss.obs.cn-south-1.myhuaweicloud.com/2.0.0/openGauss-third\_party\_binarylibs.tar.gz - -Note: This document is compiled by referring to the following official compilation document: - -https://opengauss.org/en/docs/2.0.0/docs/Quickstart/Quickstart.html - ## **Precautions** Currently, 64-bit executable programs are generated. diff --git a/app/en/blogs/2022/Using-pg_chameleon-to-Migrate-Data-from-MySQL-to-openGauss.md b/app/en/blogs/2022/Using-pg_chameleon-to-Migrate-Data-from-MySQL-to-openGauss.md index 3c53fcf6..9639c500 100644 --- a/app/en/blogs/2022/Using-pg_chameleon-to-Migrate-Data-from-MySQL-to-openGauss.md +++ b/app/en/blogs/2022/Using-pg_chameleon-to-Migrate-Data-from-MySQL-to-openGauss.md @@ -161,7 +161,7 @@ After the modification, restart MySQL for the configurations to take effect. Download the source code of psycopg2 at https://github.com/psycopg/psycopg2, remove the restriction of checking the PostgreSQL version, and run the **python setup.py install** command to compile the source code and install the tool. - Download the source code of pg_chameleon at https://github.com/the4thdoctor/pg\_chameleon, solve the preceding issues in openGauss, and run the **python setup.py install** command to compile the source code and install the tool. + Download the source code of pg_chameleon, solve the preceding issues in openGauss, and run the **python setup.py install** command to compile the source code and install the tool. 3. Create the configuration file directory of pg_chameleon. diff --git a/app/en/blogs/2022/openGauss-Database-Performance-Optimization.md b/app/en/blogs/2022/openGauss-Database-Performance-Optimization.md index 52f399f4..cebc4219 100644 --- a/app/en/blogs/2022/openGauss-Database-Performance-Optimization.md +++ b/app/en/blogs/2022/openGauss-Database-Performance-Optimization.md @@ -444,7 +444,7 @@ Run the preceding command based on the core binding configuration and benchmark \(1\) Replace the **tableCreats.sql** file. - Download the **tableCreates.sql** file \(at https://blog.opengauss.org/zh/post/optimize/images/tableCreates.sql\). Use this file to replace the corresponding file in **benchmarksql-5.0/run/sql.common/** of the benchmark SQL. + Download the **tableCreates.sql** file. Use this file to replace the corresponding file in **benchmarksql-5.0/run/sql.common/** of the benchmark SQL. The file is modified as follows: diff --git "a/app/zh/blogs/2022/zabbix-\347\233\221\346\216\247-MogDB-openGauss-\344\271\213-\351\207\207\351\233\206prometheus\346\225\260\346\215\256.md" "b/app/zh/blogs/2022/zabbix-\347\233\221\346\216\247-MogDB-openGauss-\344\271\213-\351\207\207\351\233\206prometheus\346\225\260\346\215\256.md" index 3fabb142..cbc81afc 100644 --- "a/app/zh/blogs/2022/zabbix-\347\233\221\346\216\247-MogDB-openGauss-\344\271\213-\351\207\207\351\233\206prometheus\346\225\260\346\215\256.md" +++ "b/app/zh/blogs/2022/zabbix-\347\233\221\346\216\247-MogDB-openGauss-\344\271\213-\351\207\207\351\233\206prometheus\346\225\260\346\215\256.md" @@ -21,7 +21,7 @@ times: '12:30' ## 前言 -市场上比较的监控方式有两种:zabbix 和 prometheus 架构,对于 MogDB/openGauss 数据库来说,已经通过[grafana + prometheus + opengauss_exporter](https://www.modb.pro/db/173483)的方式完成了监控部署,如何通过 zabbix 完成对 MogDB/openGauss 数据库完成监控呢,通过 zabbix 官网我们知道从 zabbix 4.2 版本开始支持了 Prometheus 数据源,那本篇文章先实现通过 zabbix 采集 prometheus 数据,zabbix 底层的数据存储采用 MogDB 数据库。 +市场上比较的监控方式有两种:zabbix 和 prometheus 架构,对于 MogDB/openGauss 数据库来说,已经通过grafana + prometheus + opengauss_exporter的方式完成了监控部署,如何通过 zabbix 完成对 MogDB/openGauss 数据库完成监控呢,通过 zabbix 官网我们知道从 zabbix 4.2 版本开始支持了 Prometheus 数据源,那本篇文章先实现通过 zabbix 采集 prometheus 数据,zabbix 底层的数据存储采用 MogDB 数据库。 ## 软件信息 diff --git "a/app/zh/blogs/2022/\351\205\215\347\275\256MogDB-openGauss\347\232\204grafana-\347\232\204dashboard.md" "b/app/zh/blogs/2022/\351\205\215\347\275\256MogDB-openGauss\347\232\204grafana-\347\232\204dashboard.md" index b0267d66..056a2a03 100644 --- "a/app/zh/blogs/2022/\351\205\215\347\275\256MogDB-openGauss\347\232\204grafana-\347\232\204dashboard.md" +++ "b/app/zh/blogs/2022/\351\205\215\347\275\256MogDB-openGauss\347\232\204grafana-\347\232\204dashboard.md" @@ -21,7 +21,7 @@ times: '12:30' ## **概述** -我们已经介绍了[prometheus + grafana + opengauss_exporter](https://www.modb.pro/db/173483)完成对 MogDB/openGauss 数据库的监控,但这只是第一步,我们还需要通过 grafana 的 dashboard 查看各个关注的指标项,本文主要介绍 dashboard 的配置。 +我们已经介绍了prometheus + grafana + opengauss_exporter完成对 MogDB/openGauss 数据库的监控,但这只是第一步,我们还需要通过 grafana 的 dashboard 查看各个关注的指标项,本文主要介绍 dashboard 的配置。 ## **监控指标汇总** diff --git "a/app/zh/blogs/Frank/openGauss\350\264\246\346\234\254\346\225\260\346\215\256\345\272\223\357\274\214\344\275\240\344\270\215\347\237\245\351\201\223\347\232\204\351\202\243\344\272\233\344\272\213\345\204\277openGauss\350\264\246\346\234\254\346\225\260\346\215\256\345\272\223\357\274\214\344\275\240\344\270\215\347\237\245\351\201\223\347\232\204\351\202\243\344\272\233\344\272\213\345\204\277.md" "b/app/zh/blogs/Frank/openGauss\350\264\246\346\234\254\346\225\260\346\215\256\345\272\223\357\274\214\344\275\240\344\270\215\347\237\245\351\201\223\347\232\204\351\202\243\344\272\233\344\272\213\345\204\277openGauss\350\264\246\346\234\254\346\225\260\346\215\256\345\272\223\357\274\214\344\275\240\344\270\215\347\237\245\351\201\223\347\232\204\351\202\243\344\272\233\344\272\213\345\204\277.md" index d1d78cc9..0df2d9a2 100644 --- "a/app/zh/blogs/Frank/openGauss\350\264\246\346\234\254\346\225\260\346\215\256\345\272\223\357\274\214\344\275\240\344\270\215\347\237\245\351\201\223\347\232\204\351\202\243\344\272\233\344\272\213\345\204\277openGauss\350\264\246\346\234\254\346\225\260\346\215\256\345\272\223\357\274\214\344\275\240\344\270\215\347\237\245\351\201\223\347\232\204\351\202\243\344\272\233\344\272\213\345\204\277.md" +++ "b/app/zh/blogs/Frank/openGauss\350\264\246\346\234\254\346\225\260\346\215\256\345\272\223\357\274\214\344\275\240\344\270\215\347\237\245\351\201\223\347\232\204\351\202\243\344\272\233\344\272\213\345\204\277openGauss\350\264\246\346\234\254\346\225\260\346\215\256\345\272\223\357\274\214\344\275\240\344\270\215\347\237\245\351\201\223\347\232\204\351\202\243\344\272\233\344\272\213\345\204\277.md" @@ -586,8 +586,6 @@ gs_global_chain 主要处理流程: ## 你知道的那些事儿 -### [官方文档](https://www.opengauss.org/zh/docs/latest/docs/Developerguide/%E4%BF%AE%E5%A4%8D%E8%B4%A6%E6%9C%AC%E6%95%B0%E6%8D%AE%E5%BA%93.html) - 前提条件: - 系统中需要有审计管理员或者具有审计管理员权限的角色。 @@ -614,8 +612,6 @@ omm=# SELECT pg_catalog.ledger_hist_repair('ledgernsp', 'usertable'); ``` -[drawio](rHmeQ8HWKS_RFXgP-oTUZINZguxBYqh2IV64Y0j5TAA.svg) - #### 2、执行全局区块表修复操作 ```sql diff --git "a/app/zh/blogs/July/openGauss-MogDB\346\225\260\346\215\256\345\272\223\345\256\214\347\276\216\351\200\202\351\205\215Grafana\345\217\212Prometheus.md" "b/app/zh/blogs/July/openGauss-MogDB\346\225\260\346\215\256\345\272\223\345\256\214\347\276\216\351\200\202\351\205\215Grafana\345\217\212Prometheus.md" index 545dc3be..01ec451a 100644 --- "a/app/zh/blogs/July/openGauss-MogDB\346\225\260\346\215\256\345\272\223\345\256\214\347\276\216\351\200\202\351\205\215Grafana\345\217\212Prometheus.md" +++ "b/app/zh/blogs/July/openGauss-MogDB\346\225\260\346\215\256\345\272\223\345\256\214\347\276\216\351\200\202\351\205\215Grafana\345\217\212Prometheus.md" @@ -137,7 +137,7 @@ WantedBy=multi-user.target 2.1. 安装包下载 -软件下载地址:https://github.com/prometheus/node\_exporter/releases +软件下载地址:https://github.com/prometheus/node_exporter/releases 下载文件 node_exporter-1.2.2.linux-arm64.tar.gz @@ -210,7 +210,7 @@ prometheus 配置文件 prometheus.yml 增加下面的内容 3.1. 安装包下载 -下载地址:https://github.com/enmotech/opengauss\_exporter +下载地址:https://github.com/prometheus/node_exporter/releases 下载文件 node_exporter-1.2.2.linux-arm64.tar.gz diff --git "a/app/zh/blogs/July/openGauss\346\225\260\346\215\256\345\272\223\347\216\257\345\242\203\351\205\215\347\275\256.md" "b/app/zh/blogs/July/openGauss\346\225\260\346\215\256\345\272\223\347\216\257\345\242\203\351\205\215\347\275\256.md" index 0e768033..15bb7be8 100644 --- "a/app/zh/blogs/July/openGauss\346\225\260\346\215\256\345\272\223\347\216\257\345\242\203\351\205\215\347\275\256.md" +++ "b/app/zh/blogs/July/openGauss\346\225\260\346\215\256\345\272\223\347\216\257\345\242\203\351\205\215\347\275\256.md" @@ -21,10 +21,6 @@ times: '12:30' ## 一、首先在虚拟机装入 centos 系统 -参考链接 - -[openGauss——VMware 安装 | C1everF0x's Blog](https://c1everf0x.github.io/2021/04/10/openGauss%25E2%2580%2594%25E2%2580%2594VMware%25E5%25AE%2589%25E8%25A3%2585/) - 创建用户 diff --git "a/app/zh/blogs/July/openGauss\346\225\260\346\215\256\345\272\223\347\232\204\345\256\211\350\243\205\350\277\220\350\241\214.md" "b/app/zh/blogs/July/openGauss\346\225\260\346\215\256\345\272\223\347\232\204\345\256\211\350\243\205\350\277\220\350\241\214.md" index 2a65e451..e718b41c 100644 --- "a/app/zh/blogs/July/openGauss\346\225\260\346\215\256\345\272\223\347\232\204\345\256\211\350\243\205\350\277\220\350\241\214.md" +++ "b/app/zh/blogs/July/openGauss\346\225\260\346\215\256\345\272\223\347\232\204\345\256\211\350\243\205\350\277\220\350\241\214.md" @@ -116,8 +116,6 @@ times: '12:30' - 如何使用脚本文件:创建脚本文件,xxx.sh,将上一步的脚本内容更改后保存到文件中 sh xxx.sh。编译 openGauss 需要 openGauss-server 和 binarylibs 两个组件。openGauss-server:openGauss 的主要代码。binarylibs:openGauss 依赖的第三方开源软件。通过以下网站获取编译好的 binarylibs。下载后解压缩并重命名为 binarylibs。 - https://opengauss.obs.cn-south-1.myhuaweicloud.com/2.0.0/openGauss-third\_party\_binarylibs.tar.gz - - 已经拥有完整的 openGauss 代码,把它存储在以下目录中(以 sda 为例)。 /sda/openGauss-server diff --git "a/app/zh/blogs/July/openGauss\351\200\273\350\276\221\345\244\207\344\273\275\345\217\212\346\201\242\345\244\215.md" "b/app/zh/blogs/July/openGauss\351\200\273\350\276\221\345\244\207\344\273\275\345\217\212\346\201\242\345\244\215.md" index 41ac3188..6ab640ad 100644 --- "a/app/zh/blogs/July/openGauss\351\200\273\350\276\221\345\244\207\344\273\275\345\217\212\346\201\242\345\244\215.md" +++ "b/app/zh/blogs/July/openGauss\351\200\273\350\276\221\345\244\207\344\273\275\345\217\212\346\201\242\345\244\215.md" @@ -58,8 +58,6 @@ times: '12:30' gs_dumpall[port='15400'][2021-07-27 15:39:10]: total time: 67481 ms ``` - gs_dumpall 详细参数说请见官方文档:https://opengauss.org/zh/docs/1.1.0/docs/Toolreference/gs\_dumpall.html - ## gs_dump 1. 背景信息 diff --git "a/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221SSM-MySQL\346\233\277\346\215\242\346\216\242\347\264\242 opengauss3\345\257\271\346\257\224postgresql12.md" "b/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221SSM-MySQL\346\233\277\346\215\242\346\216\242\347\264\242 opengauss3\345\257\271\346\257\224postgresql12.md" index a1e9c316..6688f336 100644 --- "a/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221SSM-MySQL\346\233\277\346\215\242\346\216\242\347\264\242 opengauss3\345\257\271\346\257\224postgresql12.md" +++ "b/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221SSM-MySQL\346\233\277\346\215\242\346\216\242\347\264\242 opengauss3\345\257\271\346\257\224postgresql12.md" @@ -141,7 +141,3 @@ alter table user1 alter column id set default nextval('public.userid_seq'); ## 最后总结 这是 SSM 开发中比较低端的 DEMO 代码,但是从中可见 openGauss 用心的包容,在接口层适配了 mybatis,遇到自增 ID 提高了容错性,相对于 postgresql 多了一道方便。 - -## 体验源代码 - -https://gitee.com/angryart/ssm-opengauss diff --git "a/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221\345\271\262\350\264\247\350\276\223\345\207\272\343\200\220SpringBoot-OpenGauss3\345\274\200\345\217\221\345\205\245\351\227\250\343\200\221.md" "b/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221\345\271\262\350\264\247\350\276\223\345\207\272\343\200\220SpringBoot-OpenGauss3\345\274\200\345\217\221\345\205\245\351\227\250\343\200\221.md" index faf485c1..90f4baeb 100644 --- "a/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221\345\271\262\350\264\247\350\276\223\345\207\272\343\200\220SpringBoot-OpenGauss3\345\274\200\345\217\221\345\205\245\351\227\250\343\200\221.md" +++ "b/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221\345\271\262\350\264\247\350\276\223\345\207\272\343\200\220SpringBoot-OpenGauss3\345\274\200\345\217\221\345\205\245\351\227\250\343\200\221.md" @@ -469,7 +469,3 @@ mybatis.type-aliases-package=com.main.model ## 最后总结 openGauss 对业界知名的 spring 支持还算友好,直接用传统的 postgresql 驱动就可以接入使用,也有自己的 opengauss 驱动。如果使用顺利,还可以支持分布式配置、服务路由、负载均衡、熔断限流、链路监控这些功能,事实上在微服务的技术框架上也是支持的。 - -## 源代码体验下载: - -https://gitee.com/angryart/springboot-opengauss diff --git "a/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221\345\271\262\350\264\247\350\276\223\345\207\272\343\200\220\345\274\200\346\272\220Mall4j\345\225\206\345\237\216\347\263\273\347\273\237-MySQL5.7\346\225\260\346\215\256\345\272\223\345\272\225\345\272\247\346\233\277\346\215\242\346\216\242\347\264\242\345\256\236\350\267\265\343\200\221.md" "b/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221\345\271\262\350\264\247\350\276\223\345\207\272\343\200\220\345\274\200\346\272\220Mall4j\345\225\206\345\237\216\347\263\273\347\273\237-MySQL5.7\346\225\260\346\215\256\345\272\223\345\272\225\345\272\247\346\233\277\346\215\242\346\216\242\347\264\242\345\256\236\350\267\265\343\200\221.md" index 9f0e5f7e..c988f7a7 100644 --- "a/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221\345\271\262\350\264\247\350\276\223\345\207\272\343\200\220\345\274\200\346\272\220Mall4j\345\225\206\345\237\216\347\263\273\347\273\237-MySQL5.7\346\225\260\346\215\256\345\272\223\345\272\225\345\272\247\346\233\277\346\215\242\346\216\242\347\264\242\345\256\236\350\267\265\343\200\221.md" +++ "b/app/zh/blogs/angryart/\343\200\220\346\210\221\344\270\216openGauss\347\232\204\346\225\205\344\272\213\343\200\221\345\271\262\350\264\247\350\276\223\345\207\272\343\200\220\345\274\200\346\272\220Mall4j\345\225\206\345\237\216\347\263\273\347\273\237-MySQL5.7\346\225\260\346\215\256\345\272\223\345\272\225\345\272\247\346\233\277\346\215\242\346\216\242\347\264\242\345\256\236\350\267\265\343\200\221.md" @@ -558,6 +558,3 @@ mytest=# select \* from tz_sys_log where id = 846; ![输入图片说明](images/image2image.png) -## 源代码体验 - -[mall4j-with-oepngauss3](https://gitee.com/angryart/mall4j-with-oepngauss3) diff --git "a/app/zh/blogs/awei/\344\273\243\347\240\201\350\247\243\346\236\220\357\274\232\344\272\213\345\212\241\347\256\241\347\220\206\345\231\250.md" "b/app/zh/blogs/awei/\344\273\243\347\240\201\350\247\243\346\236\220\357\274\232\344\272\213\345\212\241\347\256\241\347\220\206\345\231\250.md" index d08a2ae6..efc38563 100644 --- "a/app/zh/blogs/awei/\344\273\243\347\240\201\350\247\243\346\236\220\357\274\232\344\272\213\345\212\241\347\256\241\347\220\206\345\231\250.md" +++ "b/app/zh/blogs/awei/\344\273\243\347\240\201\350\247\243\346\236\220\357\274\232\344\272\213\345\212\241\347\256\241\347\220\206\345\231\250.md" @@ -15,13 +15,13 @@ times: '17:30' openGauss 将事务系统分为上层(事务块 TBlockState)以及底层(TransState)两个层次。(代码位于 src/gausskernel/storage/access/transam/xact.cpp) -1. 上层事务块:客户端 query 的状态,用于提高用户操作数据的灵活性,用事务块的形式支持在一个事务中执行多条 query 语句。 事务块状态机: 每个事务状态都对应一个事务状态机结构体。 +1. 上层事务块:客户端 query 的状态,用于提高用户操作数据的灵活性,用事务块的形式支持在一个事务中执行多条 query 语句。 事务块状态机: 每个事务状态都对应一个事务状态机结构体。 在无异常情形下,一个事务块的状态机如上图所示按照默认(TBLOCK_DEFAULT)->已开始(TBLOCK_STARTED)->事务块开启(TBLOCK_BEGIN)->事务块运行中(TBLOCK_INPROGRESS)->事务块结束(TBLOCK_END)->默认(TBLOCK_DEFAULT)循环。剩余的状态机是在上述正常场景下的各个状态点的异常处理分支。 在事务块运行中(TBLOCK_INPROGRESS)出错分为 2 种情形。事务执行失败:事务块运行中(TBLOCK_INPROGRESS)->回滚(TBLOCK_ABORT)->回滚结束(TBLOCK_ABORT_END)->默认(TBLOCK_DEFAULT);用户手动回滚执行成功的事务:事务块运行中(TBLOCK_INPROGRESS)->回滚等待(TBLOCK_ABORT_PENDING)->默认(TBLOCK_DEFAULT)。 -2. 底层(TransState):从内核视角的事务状态,真正意义上的事务状态。 事务底层状态: +2. 底层(TransState):从内核视角的事务状态,真正意义上的事务状态。 事务底层状态: 内核内部底层状态如上图所示,底层状态机的描述见结构体 TransState。在事务开启前事务状态为 TRANS_DEFAULT。 @@ -45,7 +45,7 @@ openGauss 将事务系统分为上层(事务块 TBlockState)以及底层(T 1. 整体流程 - 任何语句的执行总是先进入事务处理接口事务块中,然后调用事务底层函数处理具体命令,最后返回到事务块中。 + 任何语句的执行总是先进入事务处理接口事务块中,然后调用事务底层函数处理具体命令,最后返回到事务块中。 2. BEGIN 执行流程 @@ -65,7 +65,7 @@ openGauss 将事务系统分为上层(事务块 TBlockState)以及底层(T `finish_xact_command();` - (2) start_xact_command 函数开始一个 query 命令,调用 StartTransactionCommand 函数,此时事务块上层状态未 TBLOCK_DEFAULT,继续调用 StartTransaction 函数,设置事务底层状态 TRANS_START,完成内存、缓存区、锁资源的初始化后将事务底层状态设为 TRANS_INPROGRESS,最后在 StartTransactionCommand 函数中设置事务块上层状态为 TBLOCK_STARTED。 TBLOCK_DEFAULT->TBLOCK_STARTED + (2) start_xact_command 函数开始一个 query 命令,调用 StartTransactionCommand 函数,此时事务块上层状态未 TBLOCK_DEFAULT,继续调用 StartTransaction 函数,设置事务底层状态 TRANS_START,完成内存、缓存区、锁资源的初始化后将事务底层状态设为 TRANS_INPROGRESS,最后在 StartTransactionCommand 函数中设置事务块上层状态为 TBLOCK_STARTED。 TBLOCK_DEFAULT->TBLOCK_STARTED TRANS_DEFAULT->TRANS_START->TRANS_INPROGRESS @@ -81,7 +81,7 @@ openGauss 将事务系统分为上层(事务块 TBlockState)以及底层(T | | | | --- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| | (3) PortalRun 处理 begin 语句 (4) finish_xact_command finish_xact_command 函数结束一个 query 命令,调用 CommitTransactionCommand 函数设置事务块上层状态从 TBLOCK_BEGIN 变为 TBLOCK_INPROGRESS,并等待读取下一条命令。 | +| | (3) PortalRun 处理 begin 语句 (4) finish_xact_command finish_xact_command 函数结束一个 query 命令,调用 CommitTransactionCommand 函数设置事务块上层状态从 TBLOCK_BEGIN 变为 TBLOCK_INPROGRESS,并等待读取下一条命令。 | 3. Select 语句流程 @@ -89,7 +89,7 @@ openGauss 将事务系统分为上层(事务块 TBlockState)以及底层(T (2) start_xact_command 调用 StartTransactionCommand 函数,由于当前上层事务块状态为 TBLOCK_INPROGRESS,说明已经在事务块内部,则直接返回,不改变事务上层以及底层的状态。 - (3) PortalRun:依次向下调用函数 ExecutorRun 根据执行计划执行最优路径查询。 (4) finish_xact_command 调用 CommitTransactionCommand 函数,当前事务块上层状态仍为 TBLOCK_INPROGESS,不改变当前事务上层以及底层的状态。 + (3) PortalRun:依次向下调用函数 ExecutorRun 根据执行计划执行最优路径查询。 (4) finish_xact_command 调用 CommitTransactionCommand 函数,当前事务块上层状态仍为 TBLOCK_INPROGESS,不改变当前事务上层以及底层的状态。 4. Begin 语句流程 @@ -97,4 +97,4 @@ openGauss 将事务系统分为上层(事务块 TBlockState)以及底层(T (2) start_xact_command 调用 StartTransactionCommand 函数,由于当前上层事务块状态为 TBLOCK_INPROGRESS,说明已经在事务块内部,则直接返回,不改变事务上层以及底层的状态。 - (3) PortalRun 设置事务块上层状态为 TBLOCK_END。 (4) finish_xact_command 设置事务底层状态为 TRANS_COMMIT,进行事务提交流程并且清理事务资源;清理后设置底层事务状态为 TRANS_DEFAULT 继续调用 CommitTransaction 函数提交事务,设置事务底层状态为 TRANS_COMMIT,进行事务提交流程并且清理事务资源;本地持久化 CLOG 及 XLOG 日志,并清空相应的事务槽位信息。清理后设置底层事务状态为 TRANS_DEFAULT,返回 CommitTansactionCommand 函数;设置事务块上层状态为 TBLOCK_DEFAULT,整个事务块结束。 + (3) PortalRun 设置事务块上层状态为 TBLOCK_END。 (4) finish_xact_command 设置事务底层状态为 TRANS_COMMIT,进行事务提交流程并且清理事务资源;清理后设置底层事务状态为 TRANS_DEFAULT 继续调用 CommitTransaction 函数提交事务,设置事务底层状态为 TRANS_COMMIT,进行事务提交流程并且清理事务资源;本地持久化 CLOG 及 XLOG 日志,并清空相应的事务槽位信息。清理后设置底层事务状态为 TRANS_DEFAULT,返回 CommitTansactionCommand 函数;设置事务块上层状态为 TBLOCK_DEFAULT,整个事务块结束。 diff --git "a/app/zh/blogs/baikaishui/Vmware15-CentOS7.9\345\256\211\350\243\205openGauss.md" "b/app/zh/blogs/baikaishui/Vmware15-CentOS7.9\345\256\211\350\243\205openGauss.md" index 4a7faaa2..ac3ab4d3 100644 --- "a/app/zh/blogs/baikaishui/Vmware15-CentOS7.9\345\256\211\350\243\205openGauss.md" +++ "b/app/zh/blogs/baikaishui/Vmware15-CentOS7.9\345\256\211\350\243\205openGauss.md" @@ -193,7 +193,7 @@ cd 进根目录/mnt/hgfs,可以看到先前设置的主机共享文件夹 但是可能是因为我的 xml 文件配置错误,又或者是其他原因,导致我的预安装指令没有反馈,不论成功还是报错都没有。这里我就犯了个错误,在没有反馈的情况下反复执行预安装指令,没有反馈重启终端再执行;还没有反馈重启虚拟机再执行。反复操作下我的 centos 开启过程开始报错 piix4_smbus: Host SMBus controller not enabled!;输入密码后从登录界面又跳回登录界面没法进入系统。 -在尝试了诸多解决方法之后,我发现这时我的 centos 重启后会丢失数据,按照网上的解决方法更改的文件无法保存,所以都没有发挥作用。在进行了一个下午的尝试后我放弃了,我选择重新配置一个新的虚拟机,按照上述步骤重来一次。现在想来可能是反复执行预安装命令产生大量重复的 root 用户和 openGauss 用户的互信信息导致磁盘占用率接近满值导致出现该问题。在重新配置虚拟机后我再次开始预安装,这次出现了报错反馈 Exception: [GAUSS-51900] The current OS is not supported. The current system is: centos7.9 这里提示我们 CentOS7.9 不支持 openGauss,所以我们需要降级到 7.6 版本,但 7.6 版本的镜像我在网上没能找到,据说 openGauss 相关书籍里会提供 7.6 版本镜像。但我这里使用的是 wget http://vault.centos.org/7.6.1810/os/x86_64/Packages/centos-release-7-6.1810.2.el7.centos.x86_64.rpm 指令来下载 centos7.6 版本 rpm 包 +在尝试了诸多解决方法之后,我发现这时我的 centos 重启后会丢失数据,按照网上的解决方法更改的文件无法保存,所以都没有发挥作用。在进行了一个下午的尝试后我放弃了,我选择重新配置一个新的虚拟机,按照上述步骤重来一次。现在想来可能是反复执行预安装命令产生大量重复的 root 用户和 openGauss 用户的互信信息导致磁盘占用率接近满值导致出现该问题。在重新配置虚拟机后我再次开始预安装,这次出现了报错反馈 Exception: [GAUSS-51900] The current OS is not supported. The current system is: centos7.9 这里提示我们 CentOS7.9 不支持 openGauss,所以我们需要降级到 7.6 版本,但 7.6 版本的镜像我在网上没能找到,据说 openGauss 相关书籍里会提供 7.6 版本镜像。但我这里使用的是 wget指令来下载 centos7.6 版本 rpm 包 安装下载的 7.6 rpm 包 rpm -ivh centos-release-7-6.1810.2.el7.centos.x86_64.rpm –force 这时重新运行 rpm -qa | grep -i centos-release 就可以看到两个发行版本 diff --git "a/app/zh/blogs/duomibabi/openGauss1-0-1\351\203\250\345\210\206\346\226\260\347\211\271\346\200\247\346\265\213\350\257\225.md" "b/app/zh/blogs/duomibabi/openGauss1-0-1\351\203\250\345\210\206\346\226\260\347\211\271\346\200\247\346\265\213\350\257\225.md" index 6e158fec..1e7c21c7 100644 --- "a/app/zh/blogs/duomibabi/openGauss1-0-1\351\203\250\345\210\206\346\226\260\347\211\271\346\200\247\346\265\213\350\257\225.md" +++ "b/app/zh/blogs/duomibabi/openGauss1-0-1\351\203\250\345\210\206\346\226\260\347\211\271\346\200\247\346\265\213\350\257\225.md" @@ -21,7 +21,7 @@ times: '11:30' ## 支持全局临时表 -PostgreSQL 原生不支持全局临时表,需要借助第三方插件。具体使用可参考:[PostgreSQL 全局临时表插件 pgtt 的使用](https://www.modb.pro/db/31555) +PostgreSQL 原生不支持全局临时表,需要借助第三方插件。 opengauss 原生支持全局临时表,下面进行测试。 diff --git "a/app/zh/blogs/duomibabi/openGauss\347\274\226\350\257\221\346\224\257\346\214\201postgis.md" "b/app/zh/blogs/duomibabi/openGauss\347\274\226\350\257\221\346\224\257\346\214\201postgis.md" index 7f07f044..a19c86a2 100644 --- "a/app/zh/blogs/duomibabi/openGauss\347\274\226\350\257\221\346\224\257\346\214\201postgis.md" +++ "b/app/zh/blogs/duomibabi/openGauss\347\274\226\350\257\221\346\224\257\346\214\201postgis.md" @@ -23,7 +23,7 @@ times: '16:30' 本文介绍 openGauss 如何支持 postgis 扩展。 -本文参考链接:https://gitee.com/opengauss/openGauss-server/tree/master/third\_party/dependency/postgis +本文参考链接:https://gitee.com/opengauss/openGauss-server/tree/master/ ## 系统环境 @@ -35,7 +35,7 @@ openGauss 源码编译的过程请参考文章:[《抢鲜体验 2:openGauss ## 编译 postgis\(2.4.2\) -[《安装依赖》](http://postgis.net/docs/manual-2.4/postgis_installation.html#install_requirements):http://postgis.net/docs/manual-2.4/postgis\_installation.html\#install\_requirement +[《安装依赖》](http://postgis.net/docs/manual-2.4/postgis_installation.html#install_requirements) ## 设置环境变量 diff --git a/app/zh/blogs/enmo/FATAL Connection to database failed SCRAM authentication requires libpq version 10 or above.md b/app/zh/blogs/enmo/FATAL Connection to database failed SCRAM authentication requires libpq version 10 or above.md index 659b66da..f20e4e63 100644 --- a/app/zh/blogs/enmo/FATAL Connection to database failed SCRAM authentication requires libpq version 10 or above.md +++ b/app/zh/blogs/enmo/FATAL Connection to database failed SCRAM authentication requires libpq version 10 or above.md @@ -22,8 +22,6 @@ times: '10:20' # FATAL: Connection to database failed: SCRAM authentication requires libpq version 10 or above -本文出处:[https://www.modb.pro/db/249933](https://www.modb.pro/db/249933) - ## 问题描述: 在自定义安装好 mogdb2.1 的版本之后,使用 sysbench(sysbench 1.0.17)进行压测 mogdb 数据库时,出现一下的问题 diff --git "a/app/zh/blogs/enmo/MogDB openGauss \344\272\272\345\267\245\346\231\272\350\203\275\344\271\213\350\266\213\345\212\277\351\242\204\346\265\213.md" "b/app/zh/blogs/enmo/MogDB openGauss \344\272\272\345\267\245\346\231\272\350\203\275\344\271\213\350\266\213\345\212\277\351\242\204\346\265\213.md" index 6647187f..6be9e316 100644 --- "a/app/zh/blogs/enmo/MogDB openGauss \344\272\272\345\267\245\346\231\272\350\203\275\344\271\213\350\266\213\345\212\277\351\242\204\346\265\213.md" +++ "b/app/zh/blogs/enmo/MogDB openGauss \344\272\272\345\267\245\346\231\272\350\203\275\344\271\213\350\266\213\345\212\277\351\242\204\346\265\213.md" @@ -19,8 +19,6 @@ times: '10:20' # MogDB/openGauss 人工智能之趋势预测 -本文出处:[https://www.modb.pro/db/405803](https://www.modb.pro/db/405803) - ### 概述 趋势预测可以实现基于历史时序数据预测未来时序变化趋势,是 dbmind 功能中的一个服务,需要依赖 Prometheus 监控框架,基于 node_exporter、opengauss_exporter 和 reprocessing_exporter 进行监控指标收集及加工处理,默认预测时间是 3600s,由参数 forecasting_future_time 控制。 @@ -63,8 +61,6 @@ pip3 install -r requirements-x86.txt -i https://pypi.douban.com/simple #### 启动 prometheus -参考 [Prometheus 部署](https://www.modb.pro/db/173483) - 可以使用自己部署的 opengauss_exporter,需要做好 opengauss_exporter 与 reprocessing_exporter 的指标映射关系,这里直接使用数据库自带的 exporter 做展示。 #### 启动 opengauss_exporter diff --git "a/app/zh/blogs/enmo/MogDB openGauss \345\235\217\345\235\227\346\265\213\350\257\225-\345\257\271\345\220\257\345\212\250\347\232\204\345\275\261\345\223\215-\346\265\213\350\257\225\347\254\224\350\256\2601.md" "b/app/zh/blogs/enmo/MogDB openGauss \345\235\217\345\235\227\346\265\213\350\257\225-\345\257\271\345\220\257\345\212\250\347\232\204\345\275\261\345\223\215-\346\265\213\350\257\225\347\254\224\350\256\2601.md" index 60de688c..71a62998 100644 --- "a/app/zh/blogs/enmo/MogDB openGauss \345\235\217\345\235\227\346\265\213\350\257\225-\345\257\271\345\220\257\345\212\250\347\232\204\345\275\261\345\223\215-\346\265\213\350\257\225\347\254\224\350\256\2601.md" +++ "b/app/zh/blogs/enmo/MogDB openGauss \345\235\217\345\235\227\346\265\213\350\257\225-\345\257\271\345\220\257\345\212\250\347\232\204\345\275\261\345\223\215-\346\265\213\350\257\225\347\254\224\350\256\2601.md" @@ -19,8 +19,6 @@ times: '10:20' # MogDB/openGauss 坏块测试-对启动的影响-测试笔记 1 -本文出处:[https://www.modb.pro/db/398511](https://www.modb.pro/db/398511) - 在 UPDATE 操作提交后,脏块落盘前 kill 掉 mogdb 数据库,然后对 UPDATE 修改的坏进行以下破坏操作,仍然能够启动数据库,数据未丢失。 1、用旧数据文件替换,可以启动 diff --git "a/app/zh/blogs/enmo/MogDB \344\275\277\347\224\250\346\240\267\346\234\254\346\225\260\346\215\256\351\233\206Mogila.md" "b/app/zh/blogs/enmo/MogDB \344\275\277\347\224\250\346\240\267\346\234\254\346\225\260\346\215\256\351\233\206Mogila.md" index 92a2e6e6..f17ed54e 100644 --- "a/app/zh/blogs/enmo/MogDB \344\275\277\347\224\250\346\240\267\346\234\254\346\225\260\346\215\256\351\233\206Mogila.md" +++ "b/app/zh/blogs/enmo/MogDB \344\275\277\347\224\250\346\240\267\346\234\254\346\225\260\346\215\256\351\233\206Mogila.md" @@ -19,8 +19,6 @@ times: '10:20' # MogDB 使用样本数据集 Mogila -本文出处:[https://www.modb.pro/db/422387](https://www.modb.pro/db/422387) - MogDB 提供了一个样本数据集 Mogila,本数据集借鉴了适用于 MySQL 的[Sakila 示例数据库](https://dev.mysql.com/doc/sakila/en/)。**Sakila**最初由 MySQL AB 文档团队的 Mike Hillyer 开发,其目的是提供一个可用于书籍、教程、文章、样本等示例的标准 schema。 Mogila 数据集是一个关于 DVD 出租店信息的数据库,包含有关电影(如标题、类别、女演员)、出租店(如地址、工作人员、客户)和出租的信息。您可以使用 Mogila 数据库进行各种功能测试。 diff --git "a/app/zh/blogs/enmo/Mogdb - copy\346\212\245\351\224\231ERROR missing data for column.md" "b/app/zh/blogs/enmo/Mogdb - copy\346\212\245\351\224\231ERROR missing data for column.md" index 5f6820f9..ece07710 100644 --- "a/app/zh/blogs/enmo/Mogdb - copy\346\212\245\351\224\231ERROR missing data for column.md" +++ "b/app/zh/blogs/enmo/Mogdb - copy\346\212\245\351\224\231ERROR missing data for column.md" @@ -19,8 +19,6 @@ times: '10:20' # Mogdb - copy 报错 ERROR: missing data for column -本文出处:[https://www.modb.pro/db/419967](https://www.modb.pro/db/419967) - ### 故障现象 使用 copy 命令在进行数据导入时,出现报错:ERROR: missing data for column “c2” diff --git "a/app/zh/blogs/enmo/Psycopg\350\277\236\346\216\245Mogdb openGauss.md" "b/app/zh/blogs/enmo/Psycopg\350\277\236\346\216\245Mogdb openGauss.md" index a9cc115e..4e1b5493 100644 --- "a/app/zh/blogs/enmo/Psycopg\350\277\236\346\216\245Mogdb openGauss.md" +++ "b/app/zh/blogs/enmo/Psycopg\350\277\236\346\216\245Mogdb openGauss.md" @@ -35,7 +35,7 @@ Psycopg 是一种用于执行 SQL 语句的 PythonAPI,可以为 PostgreSQL、G [root@mogdb-kernel-0004 Psycopg]# wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/2.1.0/x86/openGauss-2.1.0-CentOS-x86_64-Python.tar.gz [root@mogdb-kernel-0004 Psycopg]# ls openGauss-2.1.0-CentOS-x86_64-Python.tar.gz [root@mogdb-kernel-0004 Psycopg]# tar -xf openGauss-2.1.0-CentOS-x86_64-Python.tar.gz [root@mogdb-kernel-0004 Psycopg]# ls lib openGauss-2.1.0-CentOS-x86_64-Python.tar.gz psycopg2 [root@mogdb-kernel-0004 Psycopg]# ``` -注:这里驱动在https://opengauss.org/zh/download/这里下载,可以根据操作系统版本下载对应的驱动 +注:这里驱动在[https://opengauss.org/zh/download/](https://opengauss.org/zh/download/)这里下载,可以根据操作系统版本下载对应的驱动 ## 4.安装驱动 diff --git "a/app/zh/blogs/enmo/openGauss\346\257\217\346\227\245\344\270\200\347\273\203\344\271\213\345\256\232\344\271\211\346\225\260\346\215\256\347\261\273\345\236\213.md" "b/app/zh/blogs/enmo/openGauss\346\257\217\346\227\245\344\270\200\347\273\203\344\271\213\345\256\232\344\271\211\346\225\260\346\215\256\347\261\273\345\236\213.md" index 370fbab6..a4676a69 100644 --- "a/app/zh/blogs/enmo/openGauss\346\257\217\346\227\245\344\270\200\347\273\203\344\271\213\345\256\232\344\271\211\346\225\260\346\215\256\347\261\273\345\236\213.md" +++ "b/app/zh/blogs/enmo/openGauss\346\257\217\346\227\245\344\270\200\347\273\203\344\271\213\345\256\232\344\271\211\346\225\260\346\215\256\347\261\273\345\236\213.md" @@ -19,12 +19,6 @@ times: '10:20' # openGauss 每日一练之定义数据类型 -本文出处:[https://www.modb.pro/db/222625](https://www.modb.pro/db/222625) - -## 学习地址 - -[https://www.modb.pro/course/133](https://www.modb.pro/course/133) - ## 学习目标 **学习 openGauss 定义数据类型** diff --git "a/app/zh/blogs/enmo/\345\276\252\345\272\217\346\270\220\350\277\233 MogDB\357\274\232\344\275\277\347\224\250regexp_split_to_table\350\277\233\350\241\214\350\241\214\345\210\227\350\275\254\346\215\242.md" "b/app/zh/blogs/enmo/\345\276\252\345\272\217\346\270\220\350\277\233 MogDB\357\274\232\344\275\277\347\224\250regexp_split_to_table\350\277\233\350\241\214\350\241\214\345\210\227\350\275\254\346\215\242.md" index bb91a82c..4290820b 100644 --- "a/app/zh/blogs/enmo/\345\276\252\345\272\217\346\270\220\350\277\233 MogDB\357\274\232\344\275\277\347\224\250regexp_split_to_table\350\277\233\350\241\214\350\241\214\345\210\227\350\275\254\346\215\242.md" +++ "b/app/zh/blogs/enmo/\345\276\252\345\272\217\346\270\220\350\277\233 MogDB\357\274\232\344\275\277\347\224\250regexp_split_to_table\350\277\233\350\241\214\350\241\214\345\210\227\350\275\254\346\215\242.md" @@ -19,7 +19,6 @@ times: '10:20' # 循序渐进 MogDB:使用 regexp_split_to_table 进行行列转换 -本文出处:[https://www.modb.pro/db/431518](https://www.modb.pro/db/431518) 在数据库的数据处理中,进行行列转换是常见的需求。在 MogDB 中,可以通过 regexp_split_to_table 将数据项按照特定字符,切分成数据表形式,便于特定属性的数据提取;类似的 regexp_split_to_array 可以将特定数据转换成数组,从而可以通过数组进行特定偏移量的数据提取。 diff --git "a/app/zh/blogs/fanjijie/openGauss\345\217\257\347\224\250\345\212\250\346\200\201\350\267\237\350\270\252\345\267\245\345\205\267.md" "b/app/zh/blogs/fanjijie/openGauss\345\217\257\347\224\250\345\212\250\346\200\201\350\267\237\350\270\252\345\267\245\345\205\267.md" index 904e332c..bf5e569c 100644 --- "a/app/zh/blogs/fanjijie/openGauss\345\217\257\347\224\250\345\212\250\346\200\201\350\267\237\350\270\252\345\267\245\345\205\267.md" +++ "b/app/zh/blogs/fanjijie/openGauss\345\217\257\347\224\250\345\212\250\346\200\201\350\267\237\350\270\252\345\267\245\345\205\267.md" @@ -106,8 +106,7 @@ pid: 1783 tid: 3565 gstrace analyze -f gstrace.log -o analyze.txt - - + gstrace detail -f gstrace.log -o detail.txt ``` diff --git "a/app/zh/blogs/foreverdragon/opengauss\345\256\211\350\243\205\344\270\216\344\275\277\347\224\250.md" "b/app/zh/blogs/foreverdragon/opengauss\345\256\211\350\243\205\344\270\216\344\275\277\347\224\250.md" index 3f822177..585779c5 100644 --- "a/app/zh/blogs/foreverdragon/opengauss\345\256\211\350\243\205\344\270\216\344\275\277\347\224\250.md" +++ "b/app/zh/blogs/foreverdragon/opengauss\345\256\211\350\243\205\344\270\216\344\275\277\347\224\250.md" @@ -26,22 +26,14 @@ times: '19:20' 在 virtualbox.org/wiki/Downloads 上下载 WINDOS hosts 版本的安装包并安装(全部下一步默认安装) - - 1.3Centos7.8 镜像下载 在华为开源镜像站下载: - - 1.4 在 virtualbox 上安装 centos7.8 ① 新建虚拟机: - - 设置虚拟机并安装: 1. 在系统里修改处理器数量为 2,启动顺序为光驱、硬盘 @@ -54,14 +46,8 @@ hosts 版本的安装包并安装(全部下一步默认安装) 5. 设置分区、在网络选项中如下设置:enp0s3,、enp0s8 介如下 - - 6 软件选择如下: - - 7 创建用户,设置 root 密码 8 进入系统后通过 ifconfig 和 ping 命令查看是否联网 @@ -376,10 +362,6 @@ Type \`help' to learn how to use Xshell prompt. 过段时间虚拟机重启好后,再次使用 SSH 工具(我用的 PuTTy)从本地电脑通过配置 enp0s3 网卡的 IP 地址(ifconfig 指令)(我是**192.168.56.101**)来连接虚拟机,并使用 ROOT 用户来登录,然后接着以下操作。 - - 先更新下权限。 ``` diff --git "a/app/zh/blogs/jackey-wu/\345\274\200\346\272\220\346\225\260\346\215\256\345\272\223OpenGauss\347\232\204\345\256\211\350\243\205\345\222\214\350\277\220\350\241\214.md" "b/app/zh/blogs/jackey-wu/\345\274\200\346\272\220\346\225\260\346\215\256\345\272\223OpenGauss\347\232\204\345\256\211\350\243\205\345\222\214\350\277\220\350\241\214.md" index 4dd71980..a8394bb1 100644 --- "a/app/zh/blogs/jackey-wu/\345\274\200\346\272\220\346\225\260\346\215\256\345\272\223OpenGauss\347\232\204\345\256\211\350\243\205\345\222\214\350\277\220\350\241\214.md" +++ "b/app/zh/blogs/jackey-wu/\345\274\200\346\272\220\346\225\260\346\215\256\345\272\223OpenGauss\347\232\204\345\256\211\350\243\205\345\222\214\350\277\220\350\241\214.md" @@ -294,7 +294,7 @@ Ps:如果在预安装失败 就执行 gs_checkos -i A -h node1 --detail 命令 如果成功连接则会显示类似如下的信息。 ``` -gsql ((openGauss x.x.x build 290d125f) compiled at 2021-03-08 02:59:43 commit 2143 last mr 131 +gsql ((openGauss x.x.x build 290d125f) compiled at 2021-03-08 02:59:43 commit 2143 last mr 131) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. ``` @@ -303,5 +303,4 @@ Type "help" for help. ## References & Thanks -; . diff --git "a/app/zh/blogs/jiangdianbin/step-by-step\344\271\213-install-docker\347\211\210\346\234\254opengauss1-0-1\344\270\273\345\244\207\346\234\272\347\276\244.md" "b/app/zh/blogs/jiangdianbin/step-by-step\344\271\213-install-docker\347\211\210\346\234\254opengauss1-0-1\344\270\273\345\244\207\346\234\272\347\276\244.md" index 28a63ece..d9577e4c 100644 --- "a/app/zh/blogs/jiangdianbin/step-by-step\344\271\213-install-docker\347\211\210\346\234\254opengauss1-0-1\344\270\273\345\244\207\346\234\272\347\276\244.md" +++ "b/app/zh/blogs/jiangdianbin/step-by-step\344\271\213-install-docker\347\211\210\346\234\254opengauss1-0-1\344\270\273\345\244\207\346\234\272\347\276\244.md" @@ -19,8 +19,6 @@ times: '16:30' # step by step 之:install docker 版本 opengauss1.0.1 主备机群 -参考文档:[https://www.modb.pro/db/34668](https://www.modb.pro/db/34668) - **实验环境说明**:OS:2 颗 8 核心 8GB 内存。 1.流程: diff --git a/app/zh/blogs/justbk/2021-08-31_shardingSphere_for_openGauss.md b/app/zh/blogs/justbk/2021-08-31_shardingSphere_for_openGauss.md index 7f983d48..c8616b3b 100644 --- a/app/zh/blogs/justbk/2021-08-31_shardingSphere_for_openGauss.md +++ b/app/zh/blogs/justbk/2021-08-31_shardingSphere_for_openGauss.md @@ -69,8 +69,6 @@ props: proxy-frontend-flush-threshold: 128 # The default value is 128. ``` -server.yaml 更多详细配置参考:[链接](https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-proxy/configuration/ 'proxy-server-config') - ## 4 修改 config-sharding.yaml 进入 conf 目录,该目录下已经有 config-sharding.yaml 文件的模板。该文件主要作用是配置**后端**与 openGauss 数据库的连接属性,分库分表规则等。 @@ -141,8 +139,6 @@ rules: schemaName: sharding_db ``` -config-sharding.yaml 更多详细配置参考:[链接](https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/configuration/yaml/ 'proxy-sharding-config') - ## 5 启动 shardingSphere-proxy 进入 bin 目录,以上配置完成后,使用`sh start.sh`即可启动 proxy 服务,默认绑定 3307 端口。可以在启动脚本时使用`sh start.sh 4000`修改为 4000 端口。 @@ -177,8 +173,6 @@ config-sharding.yaml 更多详细配置参考:[链接](https://shardingsphere.ap 复杂的查询语法(如二次子查询)当前支持的不是很完整,可以持续向 shardingSphere 社区提交 issue 来更新。 -已经支持和未支持的 SQL 请参考:[链接](https://shardingsphere.apache.org/document/current/cn/features/sharding/use-norms/sql/ 'proxy-sql-support') - ## 4 事务 shardingSphere 事务使用方法与原来的方式一致,依然通过 begin/commit/rollback 来实现。 diff --git a/app/zh/blogs/lihongda/Debezium-Adapt-openGauss.md b/app/zh/blogs/lihongda/Debezium-Adapt-openGauss.md index f174307f..11b821b7 100644 --- a/app/zh/blogs/lihongda/Debezium-Adapt-openGauss.md +++ b/app/zh/blogs/lihongda/Debezium-Adapt-openGauss.md @@ -77,13 +77,11 @@ Debezium connectors capture data changes with a range of related capabilities an openGauss 为开源数据库 PG for 9.2.4 基础上 deconding,wal2json 为 PG 的日志解析插件,将 wal 日志解析成 dml 语句以 json 的形式输出。云和恩墨基于 wal2json for pg 将该插件适配 openGauss 即 wal2json for openGauss. -- [wal2json 下载地址](http://www.lihongda.club/wp-content/uploads/2020/12/wal2json.so) - +- wal2json ## openGauss install wal2json 关于 openGauss 的安装可参考 -- [一键安装](http://www.lihongda.club/index.php/2020/12/01/opengauss%e4%bb%8e%e6%ba%90%e7%a0%81%e5%88%b0%e8%87%aa%e5%8a%a8%e5%8c%96/) - [容器安装](https://github.com/enmotech/enmotech-docker-opengauss) **修改参数 wal_level,添加 hba** @@ -248,7 +246,7 @@ postgres=> **替换 jar 文件** -- [debezium-connector-postgres-1.4.0-SNAPSHOT.jar](http://www.lihongda.club/wp-content/uploads/2020/12/debezium-connector-postgres-1.4.0-SNAPSHOT.jar) +- debezium-connector-postgres-1.4.0-SNAPSHOT.jar - [postgres.jar](https://opengauss.obs.cn-south-1.myhuaweicloud.com/1.0.1/x86/openGauss-1.0.1-JDBC.tar.gz) ``` @@ -471,11 +469,8 @@ Removing tutorial_opengauss_1 ... done Removing network tutorial_default ``` -- 原文链接:[http://www.lihongda.club/index.php/2020/12/07/debezium-adapt-opengauss/](http://www.lihongda.club/index.php/2020/12/07/debezium-adapt-opengauss/) - debezium 官网:[https://debezium.io/](https://debezium.io/) - debezium github:[https://github.com/debezium](https://github.com/debezium) -- wal2json 下载地址:[http://www.lihongda.club/wp-content/uploads/2020/12/wal2json.so](http://www.lihongda.club/wp-content/uploads/2020/12/wal2json.so) -- 一键安装:[http://www.lihongda.club/index.php/2020/12/01/opengauss%e4%bb%8e%e6%ba%90%e7%a0%81%e5%88%b0%e8%87%aa%e5%8a%a8%e5%8c%96/](http://www.lihongda.club/index.php/2020/12/01/opengauss%e4%bb%8e%e6%ba%90%e7%a0%81%e5%88%b0%e8%87%aa%e5%8a%a8%e5%8c%96/) - 容器安装:[https://github.com/enmotech/enmotech-docker-opengauss](https://github.com/enmotech/enmotech-docker-opengauss) -- connect 组件 debezium-connector-postgres-1.4.0-SNAPSHOT.jar:[http://www.lihongda.club/wp-content/uploads/2020/12/debezium-connector-postgres-1.4.0-SNAPSHOT.jar](http://www.lihongda.club/wp-content/uploads/2020/12/debezium-connector-postgres-1.4.0-SNAPSHOT.jar) +- connect 组件 debezium-connector-postgres-1.4.0-SNAPSHOT.jar - connect 组件 postgres.jar:[https://opengauss.obs.cn-south-1.myhuaweicloud.com/1.0.1/x86/openGauss-1.0.1-JDBC.tar.gz](https://opengauss.obs.cn-south-1.myhuaweicloud.com/1.0.1/x86/openGauss-1.0.1-JDBC.tar.gz) diff --git "a/app/zh/blogs/lihongda/openGauss\344\273\216\346\272\220\347\240\201\345\210\260\350\207\252\345\212\250\345\214\226.md" "b/app/zh/blogs/lihongda/openGauss\344\273\216\346\272\220\347\240\201\345\210\260\350\207\252\345\212\250\345\214\226.md" index f21c17a5..ba7e030a 100644 --- "a/app/zh/blogs/lihongda/openGauss\344\273\216\346\272\220\347\240\201\345\210\260\350\207\252\345\212\250\345\214\226.md" +++ "b/app/zh/blogs/lihongda/openGauss\344\273\216\346\272\220\347\240\201\345\210\260\350\207\252\345\212\250\345\214\226.md" @@ -281,8 +281,6 @@ openGauss-1.0.1-asianux-64bit-kernel.tar.gz openGauss-1.0.1-asianux-64bit-symbo ## Install openGauss -脚本下载链接 [enmo_install.zip](http://www.lihongda.club/wp-content/uploads/2020/12/enmo_install.zip) - **OM tool Installation** - OM 安装为官方推荐安装方式。 diff --git "a/app/zh/blogs/luooofan/openGauss\344\272\213\345\212\241\346\234\272\345\210\266-MVCC\346\212\200\346\234\257\347\232\204\345\256\236\347\216\260.md" "b/app/zh/blogs/luooofan/openGauss\344\272\213\345\212\241\346\234\272\345\210\266-MVCC\346\212\200\346\234\257\347\232\204\345\256\236\347\216\260.md" index 8af630cd..2f891ed7 100644 --- "a/app/zh/blogs/luooofan/openGauss\344\272\213\345\212\241\346\234\272\345\210\266-MVCC\346\212\200\346\234\257\347\232\204\345\256\236\347\216\260.md" +++ "b/app/zh/blogs/luooofan/openGauss\344\272\213\345\212\241\346\234\272\345\210\266-MVCC\346\212\200\346\234\257\347\232\204\345\256\236\347\216\260.md" @@ -473,8 +473,6 @@ recheck_xmax: [PostgreSql pageinspect 更深的理解 PG](https://www.modb.pro/db/24577) -[openGauss 的 MVCC 以及 vacuum 机制源码解析—CSN LOG](https://blog.opengauss.org/zh/post/minshengyunwei/opengauss%E7%9A%84mvcc%E4%BB%A5%E5%8F%8Avacuum%E6%9C%BA%E5%88%B6%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90csn-log/) - [浅谈数据库并发控制 - 锁和 MVCC](https://draveness.me/database-concurrency-control/) [PostgreSQL MVCC 可见性判断](https://cloud.tencent.com/developer/article/1598195) diff --git "a/app/zh/blogs/opengauss_deploy/ECS\344\270\212\351\203\250\347\275\262openGauss\346\225\260\346\215\256\345\272\223.md" "b/app/zh/blogs/opengauss_deploy/ECS\344\270\212\351\203\250\347\275\262openGauss\346\225\260\346\215\256\345\272\223.md" index c4b5d2e0..7f3041e0 100644 --- "a/app/zh/blogs/opengauss_deploy/ECS\344\270\212\351\203\250\347\275\262openGauss\346\225\260\346\215\256\345\272\223.md" +++ "b/app/zh/blogs/opengauss_deploy/ECS\344\270\212\351\203\250\347\275\262openGauss\346\225\260\346\215\256\345\272\223.md" @@ -11,7 +11,7 @@ times: '19:30' ## 在 ECS 上安装部署 openGauss 数据库指导手册 -文档下载:[在 ECS 上安装部署 openGauss 数据库指导手册.docx](../docs/在ECS上安装部署openGauss数据库指导手册.docx) +文档下载:[在 ECS 上安装部署 openGauss 数据库指导手册.docx](./docs/在ECS上安装部署openGauss数据库指导手册.docx) - ## 结论 从表格数据对比,ora2pg 迁移带有 BLOB 字段的表性能略优于 MTK。从安装部署来看,ora2pg 的安装部署过于复杂,MTK 的安装则非常简便。在对性能要求不那么严格的情况下,可以选择性能和 ora2pg 相差不多,部署方式简单的 MTK 进行数据迁移。 diff --git "a/app/zh/blogs/zhengwen2/openGauss\345\277\253\351\200\237\345\256\211\350\243\205\346\226\271\346\263\225(docker).md" "b/app/zh/blogs/zhengwen2/openGauss\345\277\253\351\200\237\345\256\211\350\243\205\346\226\271\346\263\225(docker).md" index ff02d553..64c595fe 100644 --- "a/app/zh/blogs/zhengwen2/openGauss\345\277\253\351\200\237\345\256\211\350\243\205\346\226\271\346\263\225(docker).md" +++ "b/app/zh/blogs/zhengwen2/openGauss\345\277\253\351\200\237\345\256\211\350\243\205\346\226\271\346\263\225(docker).md" @@ -68,14 +68,14 @@ times: '12:30' ### docker 加速(可选) -为了 pull 镜像更快,可以配置镜像加速服务器。镜像加速地址可以百度,暂时可以用我的加速地址:https://8h88nptu.mirror.aliyuncs.com。 +为了 pull 镜像更快,可以配置镜像加速服务器。镜像加速地址可以百度。 顺便一提:阿里云镜像获取地址:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors,登陆后,左侧菜单选中镜像加速器就可以看到你的专属地址了 配置镜像地址,执行命令 `vi /etc/docker/daemon.json` 修改配置文件,如该文件不存在,则创建。 在其中加入内容: ``` -{"registry-mirrors":["https://8h88nptu.mirror.aliyuncs.com"]} +{"registry-mirrors":["加速地址"]} ``` 加速地址仅供参考 diff --git a/app/zh/blogs/zhengxue/opengauss_compile.md b/app/zh/blogs/zhengxue/opengauss_compile.md index 91ab8291..dea8049a 100644 --- a/app/zh/blogs/zhengxue/opengauss_compile.md +++ b/app/zh/blogs/zhengxue/opengauss_compile.md @@ -546,10 +546,4 @@ gs_install -X clusterconfig.xml 三方库二进制包: https://opengauss-beta.obs.cn-north-4.myhuaweicloud.com/binarylibs/binarylibs.tar.gz -OM 安装包:https://opengauss-beta.obs.cn-north-4.myhuaweicloud.com/binarylibs/openGauss-2.0.0-Ubuntu-64bit-all.tar.gz - -JDBC 二进制包:https://opengauss-beta.obs.cn-north-4.myhuaweicloud.com/binarylibs/openGauss-2.0.0-JDBC.tar.gz - -ODBC 二进制包:https://opengauss-beta.obs.cn-north-4.myhuaweicloud.com/binarylibs/GaussDB-Kernel-V500R001C20-UBUNTU-64bit-Odbc.tar.gz - **_Notice:提供的基于 ubuntu 系统的二进制文件包仅供于学习和使用,不推荐直接用于生产环境_** diff --git "a/app/zh/blogs/zhou-yuxiang/opengauss\347\216\257\345\242\203\351\205\215\347\275\256.md" "b/app/zh/blogs/zhou-yuxiang/opengauss\347\216\257\345\242\203\351\205\215\347\275\256.md" index 0f88dc1a..4242e7c6 100644 --- "a/app/zh/blogs/zhou-yuxiang/opengauss\347\216\257\345\242\203\351\205\215\347\275\256.md" +++ "b/app/zh/blogs/zhou-yuxiang/opengauss\347\216\257\345\242\203\351\205\215\347\275\256.md" @@ -11,10 +11,6 @@ times: '17:30' 一、首先在虚拟机装入 centos 系统 -参考链接 - -[openGauss——VMware 安装 | C1everF0x's Blog](https://c1everf0x.github.io/2021/04/10/openGauss——VMware安装/) - 创建用户 -- Gitee