diff --git a/mogdb-docs b/mogdb-docs new file mode 160000 index 0000000000000000000000000000000000000000..f99b32260f6f25754ab581768fdc9807d32eaad1 --- /dev/null +++ b/mogdb-docs @@ -0,0 +1 @@ +Subproject commit f99b32260f6f25754ab581768fdc9807d32eaad1 diff --git a/product/zh/docs-mogdb/v3.0/about-mogdb/open-source-components/PostGIS.md b/product/zh/docs-mogdb/v3.0/about-mogdb/open-source-components/PostGIS.md new file mode 100644 index 0000000000000000000000000000000000000000..4d83e269f0df826e8178c100dc66788938566976 --- /dev/null +++ b/product/zh/docs-mogdb/v3.0/about-mogdb/open-source-components/PostGIS.md @@ -0,0 +1,306 @@ +--- +title: PostGIS +summary: PostGIS +author: Zhang Cuiping +date: 2022-06-17 +--- + +# PostGIS + +## 背景 + +PostGIS 是一个空间数据库,在 PostgreSQL 上以插件的形式提供,为 PostgreSQL 提供了存储空间地理数据的支持,PostGIS 提供的功能包括:空间对象、空间索引、空间操作函数和空间操作符等。PostGIS 遵循 OpenGIS 规范,遵循 GNU General Public License(GPLv2 or later)。 + +随着信息技术及GIS应用的不断发展,大气科学、海洋科学、地质学、环境科学、交通管理等逐步应用 GIS 作为一种技术手段,处理和分析复杂的空间数据,并进行制图。同时,随着移动通信、移动定位、移动互联网的不断发展,一切事物都联系在了一起。空间数据库在城市管理、灾害响应、资源开发等方面都有非常大的应用前景。 + +PostGIS 多年的发展为 PostgreSQL 提供了强大空间数据处理能力。MogDB内核发源于 PostgreSQL,因此MogDB将首选PostGIS提供空间数据处理。 + +## 功能特性 + +在MogDB 3.0版本中,PostGIS将支持postgis、postgis_raster 和 postgis_topology 三个模块的主要功能。PostGIS只支持行存表,不支持BRIN索引。 + +| 编号 | 功能 | 目的及参考 | +| ---- | ------------------------------------- | ------------------------------------------------------------ | +| 1 | 支持PostGIS中的geometry类型及关联函数 | 支持 PostGIS 中的geometry类型及关联函数
具体类型和关联函数参考:
[http://postgis.net/workshops/postgis-intro/geometries.html](http://postgis.net/workshops/postgis-intro/geometries.html)
[http://postgis.net/workshops/postgis-intro/geography.html](http://postgis.net/workshops/postgis-intro/geography.html)
[https://livebook.manning.com/book/postgis-in-action/chapter-2/167](https://livebook.manning.com/book/postgis-in-action/chapter-2/167)
[https://gitee.com/opengauss/openGauss-third_party/tree/master/gpl_dependency/postgis](https://gitee.com/opengauss/openGauss-third_party/tree/master/gpl_dependency/postgis) | +| 2 | 支持 Raster及关联函数 | 支持 PostGIS 中的 raster 类型及关联函数。Raster 是 PostGIS 中的一种类型,用于存储和处理栅格数据。
具体类型和关联函数参考:
[https://postgis.net/docs/RT_reference.html](https://postgis.net/docs/RT_reference.html) | +| 3 | 支持 Topology 类型及其关联函数 | 支持 PostGIS 中的 topology 类型及关联函数。Topology 用于管理拓扑对象,如 faces、edges、nodes等。
具体类型和关联函数参考:
[https://postgis.net/docs/Topology.html#Topology_Types](https://postgis.net/docs/Topology.html#Topology_Types)
[https://trac.osgeo.org/postgis/wiki/UsersWikiPostgisTopology](https://trac.osgeo.org/postgis/wiki/UsersWikiPostgisTopology) | + +## 安装PostGIS + +### 安装准备 + +PostGIS依赖下列工具 (最低版本要求): + +- GCC-7.3. zlib.autoconf.automake +- Geos 3.6.2 +- Proj 4.9.2 +- Json 0.12.1 +- Libxml2 2.7.1 +- Gdal 1.11.0 + +> 注意:本文档仅提供*Geos.Proj.Json.Libxml.Gdal 1.11.0*安装脚本,您可以在之后选择通过脚本安装 *GCC-7.3.zlib.autoconf.automake*。 + +### 获取安装包 + +访问[该网站](https://opengauss.obs.cn-south-1.myhuaweicloud.com/dependency/postgis-xc-master-2020-09-17.tar.gz)下载postgis-xc-master-2020-09-17.tar.gz压缩包执行安装。 + +### 安装步骤 + +1. 将下载的压缩包拷贝到 *$GAUSSHOME* 路径下,解压缩,将目录重命名为 postgis-xc。 + +2. 设置必要的环境变量。 + + ``` + export CODE_BASE=________ # Path of the MogDB-server file + export PostGIS=________ # Path of the MogDB/PostGIS file + export BINARYLIBS=________ # Path of the binarylibs file + export GAUSSHOME=________ # Path of MogDB installation + export LD_LIBRARY_PATH=$GAUSSHOME/lib:$GAUSSHOME/install/geos/lib:$GAUSSHOME/install/proj4/lib:$GAUSSHOME/install/gdal/lib:$GAUSSHOME/install/libxml2/lib/:$LD_LIBRARY_PATH + ``` + +3. 编译安装 PostGIS。 + + 执行以下命令进行安装,编译安装过程中,生成的文件会放在 *$GAUSSHOME/install* 路径下。 + + - 如果使用openeuler_aarch64操作系统,在以下执行 ./configure 的地方需要加上 "*--build=aarch64-unknown-linux-gnu*" 选项。 + - 编译安装过程中依赖第三方工具,如automake、autoconf 等。如果有编译环境,理论上已经安装过。如果未安装,请按照提示安装。 + + ``` + cd $GAUSSHOME/postgis-xc + + #apply patch + cd postgis-xc + patch -p1 < $PostGIS/postgis_2.4.2-1.patch + + #copy the dependent file: + cp $PostGIS/extension_dependency.h $GAUSSHOME/include/postgresql/server/ + + 此处需要替换为本机的PostGIS路径 + 编译 MogDB 3.0.0 和 openGauss 3.0.0 使用的 extension_dependency.h 文件不一样,主要是 MogDB 和 openGauss 内核在一些接口上有差异 + + 主要有以下接口: + SPI_execute + SPI_exec + SPI_cursor_open_with_args + + #install geos + cd $GAUSSHOME/postgis-xc/geos-3.6.2 + chmod +x ./configure + ./configure --prefix=$GAUSSHOME/install/geos + make -sj + make install -sj + + #install proj + cd $GAUSSHOME/postgis-xc/proj-4.9.2 + chmod +x ./configure + ./configure --prefix=$GAUSSHOME/install/proj + make -sj + make install -sj + + #install json + cd $GAUSSHOME/postgis-xc/json-c-json-c-0.12.1-20160607 + chmod +x ./configure + ./configure --prefix=$GAUSSHOME/install/json + + 执行make前需要在Makefile文件中将CFLAGS = CFLAGS = -g -O2 修改为CFLAGS = CFLAGS = -g -O2 -w + + make -sj + make install -sj + + #install libxml2 + cd $GAUSSHOME/postgis-xc/libxml2-2.7.1 + chmod +x ./configure + ./configure --prefix=$GAUSSHOME/install/libxml2 + make -sj + make install -sj + + #install gdal + cd $GAUSSHOME/postgis-xc/gdal-1.11.0 + chmod +x ./configure + chmod +x ./install-sh + ./configure --prefix=$GAUSSHOME/install/gdal --with-xml2=$GAUSSHOME/install/libxml2/bin/xml2-config --with-geos=$GAUSSHOME/install/geos/bin/geos-config --with-static_proj4=$GAUSSHOME/install/proj CFLAGS='-O2 -fpermissive -pthread' + make -sj + make install -sj + + #install postgis + cd $GAUSSHOME/postgis-xc/postgis-2.4.2 + sed -i -e 's/-Werror//g' $GAUSSHOME/lib/postgresql/pgxs/src/Makefile.global + ./configure --prefix=$GAUSSHOME/install/pggis2.4.2 --with-pgconfig=$GAUSSHOME/bin/pg_config --with-projdir=$GAUSSHOME/install/proj --with-geosconfig=$GAUSSHOME/install/geos/bin/geos-config --with-jsondir=$GAUSSHOME/install/json --with-xml2config=$GAUSSHOME/install/libxml2/bin/xml2-config --with-raster --with-gdalconfig=$GAUSSHOME/install/gdal/bin/gdal-config --with-topology --without-address-standardizer CFLAGS='-O2 -fpermissive -DPGXC -pthread -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -DMEMORY_CONTEXT_CHECKING -w' CC=g++ + make -sj + make install -sj + + # copy the essential files to opengauss install folders: + cp $GAUSSHOME/install/json/lib/libjson-c.so.2 $GAUSSHOME/lib/libjson-c.so.2 + cp $GAUSSHOME/install/geos/lib/libgeos_c.so.1 $GAUSSHOME/lib/libgeos_c.so.1 + cp $GAUSSHOME/install/proj/lib/libproj.so.9 $GAUSSHOME/lib/libproj.so.9 + cp $GAUSSHOME/install/geos/lib/libgeos-3.6.2.so $GAUSSHOME/lib/libgeos-3.6.2.so + cp $GAUSSHOME/install/gdal/lib/libgdal.so.1.18.0 $GAUSSHOME/lib/libgdal.so.1 + cp $GAUSSHOME/install/pggis2.4.2/lib/liblwgeom-2.4.so.0 $GAUSSHOME/lib/liblwgeom-2.4.so.0 + cp $GAUSSHOME/postgis-xc/postgis-2.4.2/postgis.control $GAUSSHOME/share/postgresql/extension/ + cp $GAUSSHOME/postgis-xc/postgis-2.4.2/postgis--2.4.2.sql $GAUSSHOME/share/postgresql/extension/ + rm -f $GAUSSHOME/share/postgresql/extension/postgis_raster--2.*.sql + cp $GAUSSHOME/postgis-xc/postgis-2.4.2/postgis_raster--2.4.2.sql $GAUSSHOME/share/postgresql/extension/postgis_raster--2.4.2.sql + cp $GAUSSHOME/postgis-xc/postgis-2.4.2/postgis_raster.control $GAUSSHOME/share/postgresql/extension/postgis_raster.control + rm -f $GAUSSHOME/share/postgresql/extension/postgis_topology--2.*.sql + cp $GAUSSHOME/postgis-xc/postgis-2.4.2/extensions/postgis_topology/sql/postgis_topology--2.4.2.sql $GAUSSHOME/share/postgresql/extension/postgis_topology--2.4.2.sql + cp $GAUSSHOME/postgis-xc/postgis-2.4.2/extensions/postgis_topology/postgis_topology.control $GAUSSHOME/share/postgresql/extension/postgis_topology.control + ``` + +4. 执行安装插件的命令 + + ``` + CREATE EXTENSION postgis; // 执行时间可能较长 + CREATE EXTENSION postgis_raster; + set behavior_compat_options='bind_procedure_searchpath'; + CREATE EXTENSION postgis_topology; + ``` + +## 使用PostGIS + +### 创建Extension + +- 使能PostGIS中的postgis功能 + + ``` + CREATE EXTENSION postgis; + ``` + +- 使能PostGIS中的栅格功能 + + ``` + CREATE EXTENSION postgis_raster; + ``` + +- 使能PostGIS中的拓扑功能 + + ``` + set behavior_compat_options='bind_procedure_searchpath'; + CREATE EXTENSION postgis_topology; + ``` + +### 使用Extension + +调用PostGIS Extension函数 + +```sql +SELECT GisFunction (Param1, Param2,......); +``` + +> 注意:GisFunction为函数名,Param1、Param2等为函数参数名。有关其他函数的具体使用,请参考[postgis-2.4.2](https://download.osgeo.org/postgis/docs/postgis-2.4.2.pdf)。 + +### 删除Extension + +删除PostGIS Extension。 + +``` +DROP EXTENSION postgis [CASCADE]; +``` + +> 注意: +> +> - 如果Extension被其它对象依赖(如创建的几何表),需要加入CASCADE(级联)关键字,删除所有依赖对象。 +> +> - 如果要完全删除PostGIS Extension,则需由omm用户使用gs_om工具移除PostGIS及其依赖的动态链接库,格式如下: +> +> ``` +> gs_om -t postgis -m rmlib +> ``` + +## PostGIS使用限制 + +### 支持的操作符和函数列表 + +| 函数分类 | 包含函数 | +| -------------------------------------- | ------------------------------------------------------------ | +| Management Functions | AddGeometryColumn、DropGeometryColumn、DropGeometryTable、PostGIS_Full_Version、PostGIS_GEOS_Version、PostGIS_Liblwgeom_Version、PostGIS_Lib_Build_Date、PostGIS_Lib_Version、PostGIS_PROJ_Version、PostGIS_Scripts_Build_Date、PostGIS_Scripts_Installed、PostGIS_Version、PostGIS_LibXML_Version、PostGIS_Scripts_Released、Populate_Geometry_Columns 、UpdateGeometrySRID | +| Geometry Constructors | ST_BdPolyFromText 、ST_BdMPolyFromText 、ST_Box2dFromGeoHash、ST_GeogFromText、ST_GeographyFromText、ST_GeogFromWKB、ST_GeomCollFromText、ST_GeomFromEWKB、ST_GeomFromEWKT、ST_GeometryFromText、ST_GeomFromGeoHash、ST_GeomFromGML、ST_GeomFromGeoJSON、ST_GeomFromKML、ST_GMLToSQL、ST_GeomFromText 、ST_GeomFromWKB、ST_LineFromMultiPoint、ST_LineFromText、ST_LineFromWKB、ST_LinestringFromWKB、ST_MakeBox2D、ST_3DMakeBox、ST_MakeEnvelope、ST_MakePolygon、ST_MakePoint、ST_MakePointM、ST_MLineFromText、ST_MPointFromText、ST_MPolyFromText、ST_Point、ST_PointFromGeoHash、ST_PointFromText、ST_PointFromWKB、ST_Polygon、ST_PolygonFromText、ST_WKBToSQL、ST_WKTToSQL | +| Geometry Accessors | GeometryType、ST_Boundary、ST_CoordDim、ST_Dimension、ST_EndPoint、ST_Envelope、ST_ExteriorRing、ST_GeometryN、ST_GeometryType、ST_InteriorRingN、ST_IsClosed、ST_IsCollection、ST_IsEmpty、ST_IsRing、ST_IsSimple、ST_IsValid、ST_IsValidReason、ST_IsValidDetail、ST_M、ST_NDims、ST_NPoints、ST_NRings、ST_NumGeometries、ST_NumInteriorRings、ST_NumInteriorRing、ST_NumPatches、ST_NumPoints、ST_PatchN、ST_PointN、ST_SRID、ST_StartPoint、ST_Summary、ST_X、ST_XMax、ST_XMin、ST_Y、ST_YMax、ST_YMin、ST_Z、ST_ZMax、ST_Zmflag、ST_ZMin | +| Geometry Editors | ST_AddPoint、ST_Affine、ST_Force2D、ST_Force3D、ST_Force3DZ、ST_Force3DM、ST_Force4D、ST_ForceCollection、ST_ForceSFS、ST_ForceRHR、ST_LineMerge、ST_CollectionExtract、ST_CollectionHomogenize、ST_Multi、ST_RemovePoint、ST_Reverse、ST_Rotate、ST_RotateX、ST_RotateY、ST_RotateZ、ST_Scale、ST_Segmentize、ST_SetPoint、ST_SetSRID、ST_SnapToGrid、ST_Snap、ST_Transform、ST_Translate、ST_TransScale | +| Geometry Outputs | ST_AsBinary、ST_AsEWKB、ST_AsEWKT、ST_AsGeoJSON、ST_AsGML、ST_AsHEXEWKB、ST_AsKML、ST_AsLatLonText 、ST_AsSVG、ST_AsText、ST_AsX3D、ST_GeoHash | +| Operators | &&、&&&、&<、&<\|>\|、=、>>、@ 、\|&> 、\|>>、~、~=、<->、<#> | +| Spatial Relationships and Measurements | ST_3DClosestPoint、ST_3DDistance、ST_3DDWithin、ST_3DDFullyWithin、ST_3DIntersects、ST_3DLongestLine、ST_3DMaxDistance、ST_3DShortestLine、ST_Area、ST_Azimuth、ST_Centroid、ST_ClosestPoint、ST_Contains、ST_ContainsProperly、ST_Covers、ST_CoveredBy、ST_Crosses、ST_LineCrossingDirection、ST_Disjoint、ST_Distance、ST_HausdorffDistance、ST_MaxDistance、ST_DistanceSphere、ST_DistanceSpheroid、ST_DFullyWithin、ST_DWithin、ST_Equals、ST_HasArc、ST_Intersects、ST_Length、ST_Length2D、ST_3DLength、ST_Length_Spheroid、ST_Length2D_Spheroid、ST_3DLength_Spheroid、ST_LongestLine、ST_OrderingEquals、ST_Overlaps、ST_Perimeter、ST_Perimeter2D、ST_3DPerimeter、ST_PointOnSurface、ST_Project、ST_Relate、ST_RelateMatch、ST_ShortestLine、ST_Touches、ST_Within | +| Geometry Processing | ST_Buffer、ST_BuildArea、ST_Collect、ST_ConcaveHull、ST_ConvexHull、ST_CurveToLine、ST_DelaunayTriangles、ST_Difference、ST_Dump、ST_DumpPoints、ST_DumpRings、ST_FlipCoordinates、ST_Intersection、ST_LineToCurve、ST_MakeValid、ST_MemUnion、ST_MinimumBoundingCircle、ST_Polygonize、ST_Node、ST_OffsetCurve、ST_RemoveRepeatedPoints、ST_SharedPaths、ST_Shift_Longitude、ST_Simplify、ST_SimplifyPreserveTopology、ST_Split、ST_SymDifference、ST_Union、ST_UnaryUnion | +| Linear Referencing | ST_LineInterpolatePoint、ST_LineLocatePoint、ST_LineSubstring、ST_LocateAlong、ST_LocateBetween、ST_LocateBetweenElevations、ST_InterpolatePoint、ST_AddMeasure | +| Miscellaneous Functions | ST_Accum、Box2D、Box3D、ST_Expand、ST_Extent、ST_3Dextent、Find_SRID、ST_MemSize | +| Exceptional Functions | PostGIS_AddBBox、PostGIS_DropBBox、PostGIS_HasBBox | +| Raster Management Functions | AddRasterConstraints、DropRasterConstraints、AddOverviewConstraints、DropOverviewConstraints、PostGIS_GDAL_Version、PostGIS_Raster_Lib_Build_Date、PostGIS_Raster_Lib_Version、ST_GDALDrivers、UpdateRasterSRID | +| Raster Constructors | ST_AddBand、ST_AsRaster、ST_Band、ST_MakeEmptyRaster、ST_Tile、ST_FromGDALRaster | +| Raster Accessors | ST_GeoReference、ST_Height、ST_IsEmpty、ST_MetaData、ST_NumBands、ST_PixelHeight、ST_PixelWidth、ST_ScaleX、ST_ScaleY、ST_RasterToWorldCoord、ST_RasterToWorldCoordX、ST_RasterToWorldCoordY、ST_Rotation、ST_SkewX、ST_SkewY、ST_SRID、ST_Summary、ST_UpperLeftX、ST_UpperLeftY、ST_Width、ST_WorldToRasterCoord、ST_WorldToRasterCoordX、ST_WorldToRasterCoordY | +| Raster Band Accessors | ST_BandMetaData、ST_BandNoDataValue、ST_BandIsNoData、ST_BandPath、ST_BandPixelType、ST_HasNoBand | +| Raster Pixel Accessors and Setters | ST_PixelAsPolygon、ST_PixelAsPolygons、ST_PixelAsPoint、ST_PixelAsPoints、ST_PixelAsCentroid、ST_PixelAsCentroids、ST_Value、ST_NearestValue、ST_Neighborhood、ST_SetValue、ST_SetValues、ST_DumpValues、ST_PixelOfValue | +| Raster Editors | ST_SetGeoReference、ST_SetRotation、ST_SetScale、ST_SetSkew、ST_SetSRID、ST_SetUpperLeft、ST_Resample、ST_Rescale、ST_Reskew、ST_SnapToGrid、ST_Resize、ST_Transform | +| Raster Band Editors | ST_SetBandNoDataValue、ST_SetBandIsNoData | +| Raster Band Statistics and Analytics | ST_Count、ST_CountAgg、ST_Histogram、ST_Quantile、ST_SummaryStats、ST_SummaryStatsAgg、ST_ValueCount | +| Raster Outputs | ST_AsBinary、ST_AsGDALRaster、ST_AsJPEG、ST_AsPNG、ST_AsTIFF | +| Raster Processing | ST_Clip、ST_ColorMap、ST_Intersection、ST_MapAlgebra、ST_Reclass、ST_Union、ST_Distinct4ma、ST_InvDistWeight4ma、ST_Max4ma、ST_Mean4ma、ST_Min4ma、ST_MinDist4ma、ST_Range4ma、ST_StdDev4ma、ST_Sum4ma、ST_Aspect、ST_HillShade、ST_Roughness、ST_Slope、ST_TPI、ST_TRI、Box3D、ST_ConvexHull、ST_DumpAsPolygons、ST_Envelope、ST_MinConvexHull、ST_Polygon、ST_Contains、ST_ContainsProperly、ST_Covers、ST_CoveredBy、ST_Disjoint、ST_Intersects、ST_Overlaps、ST_Touches、ST_SameAlignment、ST_NotSameAlignmentReason、ST_Within、ST_DWithin、ST_DFullyWithin | +| Raster Operators | &&、&<、&>、=、@、~=、~ | + +### 空间索引 + +GaussDB A数据库的PostGIS Extension支持GIST (Generalized Search Tree) 空间索引(分区表除外)。相比于B-tree索引,GIST索引适用于任意类型的非常规数据结构,可有效提高几何和地理数据信息的检索效率。 + +使用如下命令创建GIST索引: + +```sql +MogDB=# CREATE INDEX indexname ON tablename USING GIST ( geometryfield ); +``` + +### 扩展限制 + +- 只支持行存表; + +- spatial_ref_sys表在扩容期间只支持查询操作; + +- 目前不支持 window 函数; + +- long_xact 不支持; + +- 不支持 Interrupt 操作; + +## 示例 + +- geometry类型 + + ```sql + MogDB=# CREATE TABLE testgeomobj (id serial, geom geometry NOT NULL); + MogDB=# INSERT INTO testgeomobj (geom) VALUES ('SRID=4326;POINT(-95.363151 29.763374)'); + ``` + +- raster类型 + + ```sql + MogDB=# CREATE TABLE dummy_rast(rid integer, rast raster); + MogDB=# INSERT INTO dummy_rast(rid, rast) + VALUES (1, + ('01' -- little endian (uint8 ndr) + || + '0000' -- version (uint16 0) + || + '0000' -- nBands (uint16 0) + || + '0000000000000040' -- scaleX (float64 2) + || + '0000000000000840' -- scaleY (float64 3) + || + '000000000000E03F' -- ipX (float64 0.5) + || + '000000000000E03F' -- ipY (float64 0.5) + || + '0000000000000000' -- skewX (float64 0) + || + '0000000000000000' -- skewY (float64 0) + || + '00000000' -- SRID (int32 0) + || + '0A00' -- width (uint16 10) + || + '1400' -- height (uint16 20) + )::raster + ); + ``` + +- topology类型 + + ```sql + MogDB=# SELECT topology.CreateTopology(name, [srid], [tolerance]); + ``` diff --git a/product/zh/docs-mogdb/v3.0/characteristic-description/application-development-interfaces/MogDB-MySQL-compatibility.md b/product/zh/docs-mogdb/v3.0/characteristic-description/application-development-interfaces/MogDB-MySQL-compatibility.md new file mode 100644 index 0000000000000000000000000000000000000000..6c8ac724dc710212756b3f2a33a63efb9d2042a4 --- /dev/null +++ b/product/zh/docs-mogdb/v3.0/characteristic-description/application-development-interfaces/MogDB-MySQL-compatibility.md @@ -0,0 +1,24 @@ +--- +title: 兼容MySQL +summary: 兼容MySQL +author: Zhang Cuiping +date: 2022-06-21 +--- + +# 兼容MySQL + +## 可获得性 + +本特性自MogDB 3.0.0版本开始引入。 + +## 特性简介 + +本特性主要从三方面增强MogDB与MySQL的兼容性。首先是用户锁,允许用户通过sql加自定义的锁,可以让多个程序之间完成加锁相关的交互过程,使得客户端从任何位置访问都可以得到一致性的锁视图。其次,支持建表插入数据时默认记录插入当前时间;更新数据时,如果未指定更新时间,默认显示数据变更的当前时间。最后是支持设置会话级SQL模式,允许运行时变更、全局变更以及会话内变更。同时,支持兼容Insert语法,Insert into可以简写为insert。 + +## 客户价值 + +通过设置用户锁,对数据、数据结构或者某些字符串进行保护,避免会话之间相互干扰,保证了信息的一致性和安全性。解决了用户业务数据写入与修改时,记录其操作时间戳的问题。通过设置sql模式,可以解决早期版本遗留问题与后期版本的兼容性。 + +## 相关页面 + +[CREATE TABLE](CREATE-TABLE), [ALTER TABLE](ALTER-TABLE), [INSERT](INSERT) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v3.0/characteristic-description/application-development-interfaces/MogDB-Oracle-compatibility.md b/product/zh/docs-mogdb/v3.0/characteristic-description/application-development-interfaces/MogDB-Oracle-compatibility.md new file mode 100644 index 0000000000000000000000000000000000000000..539e2b14d8d7d0bd062cc5a0f2d468d12d4bebc4 --- /dev/null +++ b/product/zh/docs-mogdb/v3.0/characteristic-description/application-development-interfaces/MogDB-Oracle-compatibility.md @@ -0,0 +1,24 @@ +--- +title: 兼容Oracle +summary: 兼容Oracle +author: Zhang Cuiping +date: 2022-06-17 +--- + +# 兼容Oracle + +## 可获得性 + +本特性自MogDB 3.0.0版本开始引入。 + +## 特性简介 + +本特性的目标是使用MogDB去替换Oracle的过程中,做到不修改业务代码或尽量减少修改业务代码。所有SQL使用方法以oracle数据库为参考,结果不同则视为有缺陷,结果顺序不同不视为缺陷(除非语句中明确指定排序),扩展功能不视为缺陷。 + +## 客户价值 + +本特性通过减少业务代码的修改,增强MogDB与Oracle的兼容性。 + +## 相关页面 + +[compat-tools仓库页面](https://gitee.com/enmotech/compat-tools) diff --git a/product/zh/docs-mogdb/v3.0/characteristic-description/maintainability/fault-diagnosis.md b/product/zh/docs-mogdb/v3.0/characteristic-description/maintainability/fault-diagnosis.md new file mode 100644 index 0000000000000000000000000000000000000000..8d8ec98447bb22b4471901bb50bc2d38fb8fe284 --- /dev/null +++ b/product/zh/docs-mogdb/v3.0/characteristic-description/maintainability/fault-diagnosis.md @@ -0,0 +1,34 @@ +--- +title: 故障诊断 +summary: 故障诊断 +author: Zhang Cuiping +date: 2022-06-17 +--- + +# 故障诊断 + +## 可获得性 + +本特性自MogDB 3.0.0版本开始引入。 + +## 特性简介 + +为了快速定位故障、收集系统故障信息、导出故障数据,进而修复故障,MogDB 3.0增强了OM功能以及gstrace诊断能力。 + +## 客户价值 + +故障诊断能力的增强,可以方便研发人员及时修复故障,保证系统的正常运行。 + +## 特性描述 + +gs_check工具可以对场景检查结果进行差异比较,并输出差异分析报告,帮助用户快速定位问题。 + +gs_watch工具可监测MogDB进程,当发现进程崩溃时,自动触发调用gs_collector对系统状态进行收集,以便后期分析。 + +gs_gucquery工具可自动收集整理并导出GUC值,比较不同时刻GUC值的变化。 + +gstrace诊断能力增强。支持按模块名和方法名打开一个或多个component(模块)和function(方法)的trace项;提升代码中gstrace点数量,增强gstrace输出信息表达能力;支持新的对关键数据结构PGPROC和user session数据的导出;支持gstrace点暂定并继续或崩溃功能,增强与测试框架整合实现精确控制注错;实现故障注入,包括系统调用报错模拟和变量内容攒写。 + +## 相关页面 + +[gs_check](1-gs_check),[gs_gucquery](gs_gucquery),[gstrace](16-gstrace),[gs_watch](gs_watch) diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/10-geometric-functions-and-operators.md b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/10-geometric-functions-and-operators.md index 6068bccec37dc0ac30d9048fea795e7ea917b9a7..83436930a36b53634d2c44d1b3d3bcde7e649755 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/10-geometric-functions-and-operators.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/10-geometric-functions-and-operators.md @@ -623,6 +623,29 @@ date: 2021-04-20 (1 row) ``` +- ratio_to_report + + 描述:计算一个值与一组值之和的比率。 + + 返回类型:float + + 示例: + + ```sql + MogDB=# SELECT last_name, salary, RATIO_TO_REPORT(salary) OVER () AS rr + FROM employees + WHERE job_id = 'PU_CLERK' + ORDER BY last_name, salary, rr; + ----------------------------------------------- + LAST_NAME SALARY RR + ------------------------- ---------- ---------- + Baida 2900 .208633094 + Colmenares 2500 .179856115 + Himuro 2600 .18705036 + Khoo 3100 .223021583 + Tobias 2800 .201438849 + ``` + - width(box) 描述:计算矩形的水平尺寸。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/13.1-hll-functions-and-operators.md b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/13.1-hll-functions-and-operators.md index 3e8446adf563de5f6ad943f37da0a6c91c8a6d61..f7f3a78e8fa69b2da3aacb3def2a3a11c1236c0a 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/13.1-hll-functions-and-operators.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/13.1-hll-functions-and-operators.md @@ -57,7 +57,7 @@ date: 2021-06-07 (1 row) ``` -> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: 数值大小相同的参数使用不同数据类型的哈希函数计算,最后结果会不一样,因为不同类型哈希函数会选取不同的哈希计算策略。 +> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** 数值大小相同的参数使用不同数据类型的哈希函数计算,最后结果会不一样,因为不同类型哈希函数会选取不同的哈希计算策略。 - hll_hash_smallint(smallint, int32) @@ -273,6 +273,22 @@ date: 2021-06-07 (1 row) ``` +- ora_hash + + 描述:计算给定表达式的哈希值。 + + 返回值类型:integer + + 示例: + + ```sql + MogDB=# select ORA_HASH('abcdAbcdasd'); + ora_hash + ------------ + 1844255371 + (1 row) + ``` + ## 日志函数 hll主要存在三种模式Explicit、Sparse、Full。当数据规模比较小的时候会使用Explicit模式,这种模式下distinct值的计算是没有误差的;随着distinct值越来越多,hll会先后转换为Sparse模式和Full模式,这两种模式在计算结果上没有任何区别,只影响hll函数的计算效率和hll对象的存储空间。下面的函数可以用于查看hll的一些参数。 @@ -724,7 +740,7 @@ hll主要存在三种模式Explicit、Sparse、Full。当数据规模比较小 (1 row) ``` - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > 注意:当两个或者多个hll数据结构做union的时候,必须要保证其中每一个hll里面的精度参数一样,否则将不可以进行union。同样的约束也适用于函数hll_union(hll,hll)。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/24-system-management-functions/1-configuration-settings-functions.md b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/24-system-management-functions/1-configuration-settings-functions.md index 6d7755b1be802166c1b88772a9c15009cc9570de..88a547a14abc312be12977d77cc637292870e82c 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/24-system-management-functions/1-configuration-settings-functions.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/24-system-management-functions/1-configuration-settings-functions.md @@ -60,3 +60,44 @@ date: 2021-04-20 off (1 row) ``` + +- show(in str text) [执行出错,需要研发说明] + + 描述:返回该GUC变量当前设置的值。 + + 返回值类型:SETOF RECORD + + 示例: + + ```sql + MogDB=# select SHOW('enable_custom_parser') from dual; + show + ---------------------------------------------------- + name | set | description + ---------------------+-----+---------------------- + enable_custom_parser | off | Enables custom parser + (3 rows) + ``` + +- show_parameter(in str text) [执行出错,需要研发说明] + + 描述:返回该GUC变量当前设置的值。 + + 返回值类型:SETOF RECORD + + 示例: + + ```sql + MogDB=# select show_parameter('enable_default'); + show_parameter + + -------------------------------------------------------------------------------------- + name | set | description + ---------------------------------+-----+--------------------------------------------- + enable_default_cfunc_libpath | on | Enable check for c function lib path. + enable_default_compression_table | off | Enables create table default compression tab + le or not. + enable_default_ustore_table | off | Creates all user-defined tables with orienta + tion inplace + (5 rows) + ``` \ No newline at end of file diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/24-system-management-functions/7-advisory-lock-functions.md b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/24-system-management-functions/7-advisory-lock-functions.md index b18559e284c13dcd83af0470fb8285b095824945..6e3b6932a1b22fdedeeebe10f9455424b2d6151a 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/24-system-management-functions/7-advisory-lock-functions.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/24-system-management-functions/7-advisory-lock-functions.md @@ -188,3 +188,57 @@ date: 2021-04-20 描述: 尝试对数据库主节点会话级别的排他咨询锁。 返回值类型: Boolean + +- pg_catalog.get_lock(text,text) + + 描述:用指定的字符串在数据库加用户锁,第二个参数是加锁等待时间。 + + 返回值类型:Int + +- pg_catalog.get_lock(text,double) + + 描述:用指定的字符串在数据库加用户锁,第二个参数是加锁等待时间。 + + 返回值类型:Int + +- pg_catalog.get_lock(text) + + 描述:用指定的字符串在数据库加用户锁。 + + 返回值类型:Int + +- pg_catalog.release_lock(text) + + 描述:释放指定的锁,如果释放成功,返回1,如果当前会话并未持有指定锁,返回0,如果当前锁并不存在(锁必须有人持有才会出现),返回NULL。 + + 返回值类型:Int + +- pg_catalog.is_free_lock(text) + + 描述:检查字符串是否空闲,如果没有被加锁返回1,否则返回0,如果检查期间出现其他错误,返回NULL。 + + 返回值类型:Int + +- pg_catalog.is_used_lock(text) + + 描述:检查字符串的锁被谁持有,返回对应的用户的会话id,如果指定锁无人持有,返回NULL。 + + 返回值类型:Bigint + +- pg_catalog.clear_all_invalid_locks() + + 描述:清除lockname HASH表中无效锁的信息,返回清除的锁的数量。 + + 返回值类型:Bigint + +- pg_catalog.release_all_locks() + + 描述:释放当前会话持有的所有的锁,返回释放的次数(对于单个字符串持有多个的情况,按对应数字计算而非只计算一次)。 + + 返回值类型:Bigint + +- pg_catalog.get_all_locks() + + 描述:查询当前库中的所有用户锁,以记录的形式返回所有用户锁的名字和持有人信息。 + + 返回值类型:Record \ No newline at end of file diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/3-character-processing-functions-and-operators.md b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/3-character-processing-functions-and-operators.md index be5260b6ce3352d95a7847f6a1cda7826b32bc99..4cb0e7d181c141e49e40f15b4ead665c6e220596 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/3-character-processing-functions-and-operators.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/3-character-processing-functions-and-operators.md @@ -73,6 +73,39 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 (1 row) ``` +- instrb(searchstr text, substring text, int64 position, int64 occurrence) + + 描述:返回字符串中指定出现的子字符串的第一个字节的位置。 + + 返回值类型:int64 + + 示例: + + ```sql + MogDB=# select INSTRB('123456123', '123', 4); + instrb + -------- + 7 + (1 row) + ``` + +- insert(str,pos,len,newstr) + + 描述:返回字符串str,开头在pos位置的子串,并且用newstr代替len个字符长的字符串。 + + 返回值类型:string + + 示例: + + ```sql + MogDB=# SELECT INSERT("begtut.com", 1, 6, "Example"); + -------- + Example.com + (1 row) + ``` + + > 注意:如果pos不在字符串的长度范围内,则返回原始字符串。如果len不在字符串的其余部分的长度范围内,从位置pos替换字符串的其余部分。如果参数为NULL返回NULL。 + - lengthb(text/bpchar) 描述:获取指定字符串的字节数。 @@ -121,7 +154,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 (1 row) ``` - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > 如果是查询bytea类型的长度,指定utf8编码时,最大长度只能为536870888。 @@ -141,6 +174,70 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 (1 row) ``` +- nls_charset_id(p1 name, p2 name default 'SQL_ASCII', P3 name default "SQL_ASCII") + + 描述:返回指定字符集p1对应的ID。 + + 返回值类型:integer + + 示例: + + ```sql + MogDB=# SELECT NLS_CHARSET_ID('gbk'); + nls_charset_id + ---------------- + 6 + (1 row) + ``` + +- nls_charset_name(p1 integer, p2 integer default 0) + + 描述:返回ID对应的字符集名称。 + + 返回值类型:name + + 示例: + + ```sql + MogDB=# SELECT NLS_CHARSET_NAME(6); + nls_charset_name + ------------------ + GBK + (1 row) + ``` + +- nls_lower + + 描述:返回所有字母的小写。 + + 返回值类型:string + + 示例: + + ```sql + MogDB=# SET search_path to whale; + MogDB=# SELECT NLS_LOWER(‘AbC’) FROM dual; + ------- + abc + (1 row) + ``` + +- NLS_UPPER + + 描述:返回所有字母的大写。 + + 返回值类型:string + + 示例: + + ```sql + MogDB=# SET search_path to whale; + MogDB=# SELECT NLS_UPPER(‘AbC’) FROM dual; + ------- + ABC + (1 row) + ``` + - notlike(x bytea name text, y bytea text) 描述:比较x和y是否不一致。 @@ -474,7 +571,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 (1 row) ``` - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > 如果POSIX正则表达式模式包含任何圆括号,那么将返回匹配第一对子表达式(对应第一个左圆括号的) 的文本。如果你想在表达式里使用圆括号而又不想导致这个例外,那么你可以在整个表达式外边放上一对圆括号。 - substring(string from *pattern* for *escape*) @@ -549,13 +646,13 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 MogDB=# SELECT regexp_substr('str','[ac]'); regexp_substr --------------- - + (1 row) - - MogDB=# SELECT regexp_substr('foobarbaz', 'b(..)', 3, 2) AS RESULT; - result - -------- - baz + + MogDB=# SELECT regexp_substr('foobarbaz', 'b(..)', 3, 2) AS RESULT; + result + -------- + baz (1 row) ``` @@ -578,10 +675,10 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 示例: ``` - MogDB=# SELECT regexp_count('foobarbaz','b(..)', 5) AS RESULT; - result - -------- - 1 + MogDB=# SELECT regexp_count('foobarbaz','b(..)', 5) AS RESULT; + result + -------- + 1 (1 row) ``` @@ -591,33 +688,33 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 参数说明: - − string:用于匹配的源字符串。 + - string:用于匹配的源字符串。 - − pattern:用于匹配的正则表达式模式串。 + - pattern:用于匹配的正则表达式模式串。 - − position:可选参数,表示从源字符串的第几个字符开始匹配,默认值为1。 + - position:可选参数,表示从源字符串的第几个字符开始匹配,默认值为1。 - − occurrence:可选参数,表示获取第occurrence个匹配子串的位置,默认值为1。 + - occurrence:可选参数,表示获取第occurrence个匹配子串的位置,默认值为1。 - − return_opt:可选参数,用于控制返回匹配子串的首字符位置还是尾字符位置。取值为0时,返回匹配子串的第一个字符的位置(从1开始计算),取值为大于0的值时,返回匹配子串的尾字符的下一个字符的位置。默认值为0。 + - return_opt:可选参数,用于控制返回匹配子串的首字符位置还是尾字符位置。取值为0时,返回匹配子串的第一个字符的位置(从1开始计算),取值为大于0的值时,返回匹配子串的尾字符的下一个字符的位置。默认值为0。 - − flags:可选参数,包含零个或多个改变函数匹配行为的单字母标记。其中:m表示按照多行模式匹配。SQL语法兼容A和B的情况下,n选项在GUC参数behavior_compat_options值包含aformat_regexp_match时,表示“.”能够匹配 '\n' 字符,flags中没有指定n时,默认“.”不能匹配 '\n' 字符;值不包含aformat_regexp_match时,“.”默认能匹配'\n'字符。n选项的含义与m选项一致。 + - flags:可选参数,包含零个或多个改变函数匹配行为的单字母标记。其中:m表示按照多行模式匹配。SQL语法兼容A和B的情况下,n选项在GUC参数behavior_compat_options值包含aformat_regexp_match时,表示“.”能够匹配 '\n' 字符,flags中没有指定n时,默认“.”不能匹配 '\n' 字符;值不包含aformat_regexp_match时,“.”默认能匹配'\n'字符。n选项的含义与m选项一致。 返回值类型:int 示例: - ``` - MogDB=# SELECT regexp_instr('foobarbaz','b(..)', 1, 1, 0) AS RESULT; - result - -------- - 4 - (1 row) - - MogDB=# SELECT regexp_instr('foobarbaz','b(..)', 1, 2, 0) AS RESULT; - result - -------- - 7 + ```sql + MogDB=# SELECT regexp_instr('foobarbaz','b(..)', 1, 1, 0) AS RESULT; + result + -------- + 4 + (1 row) + + MogDB=# SELECT regexp_instr('foobarbaz','b(..)', 1, 2, 0) AS RESULT; + result + -------- + 7 (1 row) ``` @@ -627,7 +724,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 flags参数为可选参数,包含零个或多个改变函数行为的单字母标记。i表示进行大小写无关的匹配,g表示替换每一个匹配的子字符串而不仅仅是第一个。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:** > 如果提供了最后一个参数,但参数值是空字符串("),且数据库SQL兼容模式设置为A的情况下,会导致返回结果为空集。这是因为A兼容模式将"作为NULL处理,避免此类行为的方式有如下几种: > > - 将数据库SQL兼容模式改为C; @@ -707,7 +804,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 (1 row) ``` - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > 由于数据库内存分配机制限制单次内存分配不可超过1GB,因此number最大值不应超过(1G-x)/lengthb(string) - 1。x为头信息长度,通常大于4字节,其具体值在不同的场景下存在差异。 - replace(string text, from text, to text) @@ -739,10 +836,28 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 示例: ```sql - MogDB=# SELECT replace('abcdefabcdef', 'cd'); - replace - ---------------- - abefabef + MogDB=# SELECT replace('abcdefabcdef', 'cd'); + replace + ---------------- + abefabef + (1 row) + ``` + +- replace(string, null) + + 描述:返回原字符串。 + + string类型:text + + 返回值类型:text + + 示例: + + ```sql + MogDB=# select replace('abcd', null); + replace + --------- + abcd (1 row) ``` @@ -1328,7 +1443,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 描述:将字符串str1和str2连接并返回。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知**:数据库SQL兼容模式设置为MY的情况下,参数str1或str2为NULL会导致返回结果为NULL。 + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:**数据库SQL兼容模式设置为MY的情况下,参数str1或str2为NULL会导致返回结果为NULL。 返回值类型:varchar @@ -1427,10 +1542,10 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 示例: ``` - MogDB=# SELECT regexp_replace('foobarbaz','b(..)', E'X\\1Y', 2, 2, 'n') AS RESULT; - result - ------------ - foobarXazY + MogDB=# SELECT regexp_replace('foobarbaz','b(..)', E'X\\1Y', 2, 2, 'n') AS RESULT; + result + ------------ + foobarXazY (1 row) ``` @@ -1438,7 +1553,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 描述:以第一个参数为分隔符,链接第二个以后的所有参数。NULL参数被忽略。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:** > > - 如果第一个参数值是NULL,会导致返回结果为NULL。 > - 如果第一个参数值是空字符串("),且数据库SQL兼容模式设置为A的情况下,会导致返回结果为NULL。这是因为A兼容模式>将"作为NULL处理,避免此类行为,可以将数据库SQL兼容模式改为B、C或者PG。 @@ -1464,23 +1579,23 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 sort_method类型:text 返回值类型:text - + 示例: - + ``` - MogDB=# SELECT nlssort('A', 'nls_sort=schinese_pinyin_m'); - nlssort + MogDB=# SELECT nlssort('A', 'nls_sort=schinese_pinyin_m'); + nlssort ---------------- - 01EA0000020006 - (1 row) - - MogDB=# SELECT nlssort('A', 'nls_sort=generic_m_ci'); - nlssort - ---------------- - 01EA000002 + 01EA0000020006 + (1 row) + + MogDB=# SELECT nlssort('A', 'nls_sort=generic_m_ci'); + nlssort + ---------------- + 01EA000002 (1 row) ``` - + - convert(string bytea, src_encoding name, dest_encoding name) 描述:以dest_encoding指定的目标编码方式转化字符串bytea。src_encoding指定源编码方式,在该编码下,string必须是合法的。 @@ -1497,7 +1612,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 (1 row) ``` - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > 如果源编码格式到目标编码格式的转化规则不存在,则字符串不进行任何转换直接返回,如GBK和LATIN1之间的转换规则是不存在的,具体转换规则可以通过查看系统表pg_conversion获得。 > 示例: > @@ -1655,7 +1770,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 描述:将string使用MD5加密,并以16进制数作为返回值。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > MD5加密算法安全性低,存在安全风险,不建议使用。 返回值类型:text @@ -1750,7 +1865,7 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 (1 row) ``` -> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: +> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > - 若字符串中存在换行符,如字符串由一个换行符和一个空格组成,在MogDB中LENGTH和LENGTHB的值为2。 > @@ -1764,5 +1879,5 @@ MogDB提供的字符处理函数和操作符主要用于字符串与字符串、 > ----------- > (1 row) > ``` -> +> > 这是因为内核在调用相应的函数进行处理前,会判断所输入的参数中是否含有NULL,假如 有,则不会调用相应的函数,因此会没有输出。而在PG模式下,字符串的处理方式与PostgreSQL保持一致,因此不会有上述问题产生。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/7-mathematical-functions-and-operators.md b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/7-mathematical-functions-and-operators.md index e452ae895b5489e0224ccc8d4bb47f3f7d278204..9a948b17865b8baee3c37681cd5d1652ecacb5fa 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/7-mathematical-functions-and-operators.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/7-mathematical-functions-and-operators.md @@ -829,6 +829,22 @@ date: 2021-04-20 (1 row) ``` +- remainder(n2 numeric,n1 numeric) + + 描述:返回n2 除以 n1 的余数。 + + 返回值类型:numeric + + 示例: + + ```sql + MogDB=# select REMAINDER(11,3); + remainder + ----------- + -1 + (1 row) + ``` + - round(x) 描述:离输入参数最近的整数。 @@ -839,16 +855,16 @@ date: 2021-04-20 ```sql MogDB=# SELECT round(42.4); - round - ------- - 42 - (1 row) - - MogDB=# SELECT round(42.6); - round - ------- - 43 - (1 row) + round + ------- + 42 + (1 row) + + MogDB=# SELECT round(42.6); + round + ------- + 43 + (1 row) ``` - round(v numeric, s int) diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/8-date-and-time-processing-functions-and-operators.md b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/8-date-and-time-processing-functions-and-operators.md index 492d6e3098cba9b129114ca156d13c19b092b1fb..e8d4a25fc5ed2e865749fcbbb52566ff63b7057d 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/8-date-and-time-processing-functions-and-operators.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/functions-and-operators/8-date-and-time-processing-functions-and-operators.md @@ -640,6 +640,66 @@ date: 2021-04-20 (1 row) ``` +- to_timestamp + + 描述:将入参的字符串的时间转换成不带时区的TIMESTAMP。 + + 返回值类型:timestamp + + 示例: + + ```sql + MogDB=# SELECT to_timestamp('1997/Feb/16 --> 08:14:30', 'YYYY/Mon/DD --> HH:MI:SS'); + to_timestamp + --------------------- + 1997-02-16 08:14:30 + (1 row) + ``` + +- to_yminterval + + 描述:将入参转换为包含年月的interval。 + + 返回值类型:interval + + 示例: + + ```sql + MogDB=# SELECT TO_YMINTERVAL('15-11'); + to_yminterval + ------------------ + 15 years 11 mons + (1 row) + + MogDB=# SELECT TO_YMINTERVAL('P15Y11M'); + to_yminterval + ------------------ + 15 years 11 mons + (1 row) + ``` + +- TZ_OFFSET(var) + + 描述:返回入参地址的时区偏移量。 + + 返回值类型:interval + + 示例: + + ```sql + MogDB=# SELECT TZ_OFFSET('Asia/Hong_Kong') FROM dual; + tz_offset + ----------- + 08:00:00 + (1 row) + + MogDB=# SELECT TZ_OFFSET('+14:00') FROM dual; + tz_offset + ----------- + 14:00 + (1 row) + ``` + - smalldatetime_ge 描述:判断是否第一个参数大于等于第二个参数。 @@ -784,7 +844,7 @@ date: 2021-04-20 返回值类型:character varying - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > 获取当前时间有多种方式,请根据实际业务从场景选择合适的接口: > @@ -1313,18 +1373,18 @@ MogDB=# SELECT date_part('hour', INTERVAL '4 hours 3 minutes'); | 儒略日 | J | 儒略日(自公元前 4712 年 1 月 1 日来的天数) | | 季度 | Q | 季度 | -> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: +> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > 上表中RR计算年的规则如下: > > - 输入的两位年份在00~49之间: -> +> > 当前年份的后两位在00~49之间,返回值年份的前两位和当前年份的前两位相同; -> +> > 当前年份的后两位在50~99之间,返回值年份的前两位是当前年份的前两位加1。 -> +> > - 输入的两位年份在50~99之间: -> +> > 当前年份的后两位在00\~49之间,返回值年份的前两位是当前年份的前两位减1; -> +> > 当前年份的后两位在50~99之间,返回值年份的前两位和当前年份的前两位相同。 diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/SQL-mode.md b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/SQL-mode.md new file mode 100644 index 0000000000000000000000000000000000000000..3f5f883f64d2bbacaeee16753976e55f0f50a300 --- /dev/null +++ b/product/zh/docs-mogdb/v3.0/reference-guide/guc-parameters/SQL-mode.md @@ -0,0 +1,21 @@ +--- +title: SQL模式 +summary: SQL模式 +author: Zhang Cuiping +date: 2022-06-21 +--- + +# SQL模式 + +当了避免数据库出现非法数据影响变更周期或者代码迁移过程中避免修改老代码时,可以设置以下参数实现。 + +## sql_mode + +**参数说明**:设置SQL模式。 + +**取值范围**:string 或者null + +- **Strict SQL Mode**:对于不合法或者缺失的指定值,设置合适的值。 +- **ONLY_FULL_GROUP_BY**:允许group by的时候,select列中包含非group by的列。 + +**默认值**:**Strict SQL Mode**,**ONLY_FULL_GROUP_BY** \ No newline at end of file diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/ALTER-TABLE.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/ALTER-TABLE.md index 71d5d66ad285904ada6d05119d870824db8ebc73..9f981fba616ccaa4dab60880722660a1fd814daf 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/ALTER-TABLE.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/ALTER-TABLE.md @@ -70,8 +70,8 @@ date: 2021-05-17 | NOT OF | REPLICA IDENTITY { DEFAULT | USING INDEX index_name | FULL | NOTHING } ``` - - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > - **ADD table_constraint [ NOT VALID ]** 给表增加一个新的约束。 > - **ADD table_constraint_using_index** 根据已有唯一索引为表增加主键约束或唯一约束。 @@ -102,12 +102,12 @@ date: 2021-05-17 > - **OF type_name** 将表连接至一种复合类型,与CREATE TABLE OF选项创建表一样。表的字段的名称和类型必须精确匹配复合类型中的定义,不过oid系统字段允许不一样。表不能是从任何其他表继承的。这些限制确保CREATE TABLE OF选项允许一个相同的表定义。 > - **NOT OF** 将一个与某类型进行关联的表进行关联的解除。 > - **REPLICA IDENTITY { DEFAULT | USING INDEX index_name | FULL | NOTHING }** DEFAULT记录主键的列的旧值。USING INDEX记录命名索引覆盖的列的旧值,这些值必须是唯一的,不局部的,不可延迟的,并且仅包括标记为NOT NULL的列。FULL记录该行中所有列的旧值。NOTHING不记录有关旧行的信息。在所有情况下,除非该行的新旧版本中至少要记录的列之一不同,否则不会记录任何旧值。 - + - 其中列相关的操作column_clause可以是以下子句之一: ```ebnf+diagram column_clause ::= ADD [ COLUMN ] column_name data_type [ compress_mode ] [ COLLATE collation ] [ column_constraint [ ... ] ] - | MODIFY column_name data_type + | MODIFY column_name data_type [ ON UPDATE update_expr ] | MODIFY column_name [ CONSTRAINT constraint_name ] NOT NULL [ ENABLE ] | MODIFY column_name [ CONSTRAINT constraint_name ] NULL | DROP [ COLUMN ] [ IF EXISTS ] column_name [ RESTRICT | CASCADE ] @@ -121,14 +121,14 @@ date: 2021-05-17 | ALTER [ COLUMN ] column_name RESET ( attribute_option [, ... ] ) | ALTER [ COLUMN ] column_name SET STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN } ``` - - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > - **ADD [ COLUMN ] column_name data_type [ compress_mode ] [ COLLATE collation ] [ column_constraint [ ... ] ]** 向表中增加一个新的字段。用ADD COLUMN增加一个字段,所有表中现有行都初始化为该字段的缺省值(如果没有声明DEFAULT子句,值为NULL)。 > > - **ADD ( { column_name data_type [ compress_mode ] } [, ... ] )** 向表中增加多列。 > - > - **MODIFY ( { column_name data_type | column_name [ CONSTRAINT constraint_name ] NOT NULL [ ENABLE ] | column_name [ CONSTRAINT constraint_name ] NULL } [, ... ] )** 修改表已存在字段的数据类型。 + > - **MODIFY ( { column_name data_type [ ON UPDATE update_expr ] | column_name [ CONSTRAINT constraint_name ] NOT NULL [ ENABLE ] | column_name [ CONSTRAINT constraint_name ] NULL } [, ... ] )** 修改表已存在字段的数据类型和约束属性。ON UPDATE expr只能在MySQL兼容性下使用。 > > - **DROP [ COLUMN ] [ IF EXISTS ] column_name [ RESTRICT | CASCADE ]** 从表中删除一个字段,和这个字段相关的索引和表约束也会被自动删除。如果任何表之外的对象依赖于这个字段,必须声明CASCADE ,比如视图。 DROP COLUMN命令并不是物理上把字段删除,而只是简单地把它标记为对SQL操作不可见。随后对该表的插入和更新将在该字段存储一个NULL。因此,删除一个字段是很快的,但是它不会立即释放表在磁盘上的空间,因为被删除了的字段占据的空间还没有回收。这些空间将在执行VACUUM时而得到回收。 > @@ -151,7 +151,7 @@ date: 2021-05-17 > - **ALTER [ COLUMN ] column_name SET ( {attribute_option = value} [, ... ] )** **ALTER [ COLUMN ] column_name RESET ( attribute_option [, ... ] )** 设置/重置属性选项。 目前,属性选项只定义了n_distinct和n_distinct_inherited。n_distinct影响表本身的统计值,而n_distinct_inherited影响表及其继承子表的统计。目前,只支持SET/RESET n_distinct参数,禁止SET/RESET n_distinct_inherited参数。 > > - **ALTER [ COLUMN ] column_name SET STORAGE { PLAIN | EXTERNAL | EXTENDED | MAIN }** 为一个字段设置存储模式。这个设置控制这个字段是内联保存还是保存在一个附属的表里,以及数据是否要压缩。仅支持对行存表的设置;对列存表没有意义,执行时报错。SET STORAGE本身并不改变表上的任何东西,只是设置将来的表操作时,建议使用的策略。 - + - 其中列约束column_constraint为: ```ebnf+diagram @@ -166,13 +166,13 @@ date: 2021-05-17 REFERENCES reftable [ ( refcolumn ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE action ] [ ON UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE | INITIALLY DEFERRED | INITIALLY IMMEDIATE ] ``` - + - 其中压缩可选项compress_mode为: ```ebnf+diagram compress_mode ::= [ DELTA | PREFIX | DICTIONARY | NUMSTR | NOCOMPRESS ] ``` - + - 其中根据已有唯一索引为表增加主键约束或唯一约束table_constraint_using_index为: ```ebnf+diagram @@ -180,7 +180,7 @@ date: 2021-05-17 { UNIQUE | PRIMARY KEY } USING INDEX index_name [ DEFERRABLE | NOT DEFERRABLE | INITIALLY DEFERRED | INITIALLY IMMEDIATE ] ``` - + - 其中表约束table_constraint为: ```ebnf+diagram @@ -193,14 +193,14 @@ date: 2021-05-17 [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE action ] [ ON UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE | INITIALLY DEFERRED | INITIALLY IMMEDIATE ] ``` - + 其中索引参数index_parameters为: ```ebnf+diagram index_parameters ::= [ WITH ( {storage_parameter = value} [, ... ] ) ] [ USING INDEX TABLESPACE tablespace_name ] ``` - + - 重命名表。对名称的修改不会影响所存储的数据。 ```ebnf+diagram @@ -229,7 +229,7 @@ date: 2021-05-17 SET SCHEMA new_schema; ``` - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > - 这种形式把表移动到另外一个模式。相关的索引、约束都跟着移动。目前序列不支持改变schema。 若该表拥有序列,需要将序列删除,重建,或者取消拥有关系, 才能将表schema更改成功。 > - 要修改一个表的模式,用户必须在新模式上拥有CREATE权限。要把该表添加为一个父表的新子表,用户必须同时又是父表的所有者。要修改所有者,用户还必须是新的所有角色的直接或间接成员,并且该成员必须在此表的模式上有CREATE权限。这些限制规定了该用户不能做出了重建和删除表之外的事情。不过,系统管理员可以以任何方式修改任意表的所有权限。 @@ -248,7 +248,7 @@ date: 2021-05-17 ```ebnf+diagram AlterTable ::= ALTER TABLE [ IF EXISTS ] table_name - MODIFY ( { column_name data_type | column_name [ CONSTRAINT constraint_name ] NOT NULL [ ENABLE ] | column_name [ CONSTRAINT constraint_name ] NULL } [, ...] ); + MODIFY ( { column_name data_type [ ON UPDATE update_expr ] | column_name [ CONSTRAINT constraint_name ] NOT NULL [ ENABLE ] | column_name [ CONSTRAINT constraint_name ] NULL } [, ...] ); ``` ## 参数说明 @@ -267,6 +267,10 @@ date: 2021-05-17 要删除的现有约束的名称。 +- **on update update_expr** + + 设置字段on update表达式,可以添加,删除,修改 on update 属性。 + - **index_name** 索引名称。 @@ -284,7 +288,7 @@ date: 2021-05-17 表示创建索引时起的bgworker线程数量,例如2就表示将会起2个bgworker线程并发创建索引。 如果未设置,启动bgworker线程数量与表大小相关,一般不超过4个线程。 - + - hasuids(bool类型) 默认值:off @@ -319,7 +323,7 @@ date: 2021-05-17 USING子句声明如何从旧的字段值里计算新的字段值;如果省略,缺省从旧类型向新类型的赋值转换。如果从旧数据类型到新类型没有隐含或者赋值的转换,则必须提供一个USING子句。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > ALTER TYPE的USING选项实际上可以声明涉及该行旧值的任何表达式,即它可以引用除了正在被转换的字段之外其他的字段。这样,就可以用ALTER TYPE语法做非常普遍性的转换。因为这个灵活性,USING表达式并没有作用于该字段的缺省值(如果有的话),结果可能不是缺省表达式要求的常量表达式。这就意味着如果从旧类型到新类型没有隐含或者赋值转换的话,即使存在USING子句,ALTER TYPE也可能无法把缺省值转换成新的类型。在这种情况下,应该用DROP DEFAULT先删除缺省,执行ALTER TYPE,然后使用SET DEFAULT增加一个合适的新缺省值。类似的考虑也适用于涉及该字段的索引和约束。 @@ -401,7 +405,7 @@ date: 2021-05-17 - INITIALLY IMMEDIATE:那么每条语句之后就立即检查它。 - INITIALLY DEFERRED:只有在事务结尾才检查它。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif)**说明**: Ustore表不支持新增DEFERRABLE以及INITIALLY DEFERRED约束。 + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif)**说明:** Ustore表不支持新增DEFERRABLE以及INITIALLY DEFERRED约束。 - **PARTIAL CLUSTER KEY** diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/CREATE-TABLE.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/CREATE-TABLE.md index f24d0dee685ddf72b35e6bddc610e7274d7de813..94b2d9799fd79def9b1ca87b429320e9334f82a2 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/CREATE-TABLE.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/CREATE-TABLE.md @@ -20,7 +20,7 @@ date: 2021-05-10 - 创建列存表的数量建议不超过1000个。 - 如果在建表过程中数据库系统发生故障,系统恢复后可能无法自动清除之前已创建的、大小为0的磁盘文件。此种情况出现概率小,不影响数据库系统的正常运行。 - 列存表的表级约束只支持PARTIAL CLUSTER KEY、UNIQUE、PRIAMRY KEY,不支持外键等表级约束。 -- 列存表的字段约束只支持NULL、NOT NULL、DEFAULT常量值、UNIQUE和PRIMARY KEY。 +- 列存表的字段约束只支持NULL、NOT NULL、DEFAULT常量值、ON UPDATE表达式(MySQL兼容特性)、UNIQUE和PRIMARY KEY。 - 列存表支持delta表,受参数enable_delta_store控制是否开启,受参数deltarow_threshold控制进入delta表的阀值。 - 使用JDBC时,支持通过PrepareStatement对DEFAUTL值进行参数化设置。 - 每张表的列数最大为1600,具体取决于列的类型,所有列的大小加起来不能超过8192 byte,text、varchar、char等长度可变的类型除外。 @@ -50,6 +50,7 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA NULL | CHECK ( expression ) | DEFAULT default_expr | + ON UPDATE update_expr | UNIQUE index_parameters | ENCRYPTED WITH ( COLUMN_ENCRYPTION_KEY = column_encryption_key, ENCRYPTION_TYPE = encryption_type_value) | PRIMARY KEY index_parameters | @@ -112,7 +113,7 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA 本地临时表只在当前会话可见,本会话结束后会自动删除。因此,在除当前会话连接的数据库节点故障时,仍然可以在当前会话上创建和使用临时表。由于临时表只在当前会话创建,对于涉及对临时表操作的DDL语句,会产生DDL失败的报错。因此,建议DDL语句中不要对临时表进行操作。TEMP和TEMPORARY等价。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:** > > - 本地临时表通过每个会话独立的以pg_temp开头的schema来保证只对当前会话可见,因此,不建议用户在日常操作中手动删除以pg_temp,pg_toast_temp开头的schema。 > - 如果建表时不指定TEMPORARY/TEMP关键字,而指定表的schema为当前会话的pg_temp_开头的schema,则此表会被创建为临时表。 @@ -130,7 +131,7 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA 要创建的表名。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif)**须知**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif)**须知:** > > 物化视图的一些处理逻辑会通过表名的前缀来识别是不是物化视图日志表和物化视图关联表,因此,用户不要创建表名以mlog\_或matviewmap\_为前缀的表,否则会影响此表的一些功能。 @@ -169,7 +170,7 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA - 如果指定了INCLUDING RELOPTIONS,则源表的存储参数(即源表的WITH子句)会复制到新表中。默认情况下,不复制源表的存储参数。 - INCLUDING ALL包含了INCLUDING DEFAULTS、INCLUDING CONSTRAINTS、INCLUDING INDEXES、INCLUDING STORAGE、INCLUDING COMMENTS、INCLUDING PARTITION和INCLUDING RELOPTIONS的内容。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:** > > - 如果源表包含serial、bigserial、smallserial、largeserial类型,或者源表字段的默认值是sequence,且sequence属于源表(通过CREATE SEQUENCE … OWNED BY创建),这些Sequence不会关联到新表中,新表中会重新创建属于自己的sequence。这和之前版本的处理逻辑不同。如果用户希望源表和新表共享Sequence,需要首先创建一个共享的Sequence(避免使用OWNED BY),并配置为源表字段默认值,这样创建的新表会和源表共享该Sequence。 > - 不建议将其他表私有的Sequence配置为源表字段的默认值,尤其是其他表只分布在特定的NodeGroup上,这可能导致CREATE TABLE … LIKE执行失败。另外,如果源表配置其他表私有的Sequence,当该表删除时Sequence也会连带删除,这样源表的Sequence将不可用。如果用户希望多个表共享Sequence,建议创建共享的Sequence。 @@ -179,7 +180,7 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA 这个子句为表或索引指定一个可选的存储参数。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: 使用任意精度类型Numeric定义列时,建议指定精度p以及刻度s。在不指定精度和刻度时,会按输入的显示出来。 + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** 使用任意精度类型Numeric定义列时,建议指定精度p以及刻度s。在不指定精度和刻度时,会按输入的显示出来。 参数的详细描述如下所示。 @@ -323,7 +324,7 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA 取值范围: 字符串。 默认值:不开启加密时默认为空。 - + - hasuids 参数开启:更新表元组时,为元组分配表级唯一标识id。 @@ -375,7 +376,7 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA 声明为字段约束的检查约束应该只引用该字段的数值,而在表约束里出现的表达式可以引用多个字段。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: expression表达式中,如果存在“<>NULL”或“!=NULL”,这种写法是无效的,需要写成“is NOT NULL”。 + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** expression表达式中,如果存在“<>NULL”或“!=NULL”,这种写法是无效的,需要写成“is NOT NULL”。 - **DEFAULT default_expr** @@ -383,6 +384,10 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA 缺省表达式将被用于任何未声明该字段数值的插入操作。如果没有指定缺省值则缺省值为NULL 。 +- **ON UPDATE update_expr** + + ON UPDATE子句给字段指定更新时的缺省时间截。该字段必须是时间类型,且缺省数值只能是更新操作的执行时间截,即current_timestamp。在create table中,ON UPDATE表达式可以是current_timestamp的同等替换。该语法特性只能在MySQL兼容性下才能使用。 + - **UNIQUE index_parameters** **UNIQUE ( column_name [, ...] ) index_parameters** @@ -423,7 +428,7 @@ CreateTable ::= CREATE [ [ GLOBAL | LOCAL ] [ TEMPORARY | TEMP ] | UNLOGGED ] TA 这两个关键字设置该约束是否可推迟。一个不可推迟的约束将在每条命令之后马上检查。可推迟约束可以推迟到事务结尾使用SET CONSTRAINTS命令检查。缺省是NOT DEFERRABLE。目前,UNIQUE约束、主键约束、外键约束可以接受这个子句。所有其他约束类型都是不可推迟的。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif)**说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif)**说明:** > > Ustore表不支持**DEFERRABLE**以及**INITIALLY DEFERRED**关键字。 @@ -844,7 +849,7 @@ MogDB=# CREATE TABLE table_3213 c_state char(2), c_zip char(9), c_phone char(16), - c_since timestamp, + c_since timestamp on update current_timestamp, c_middle char(2), c_data varchar(500) ) WITH (COMPRESSION = YES); @@ -1077,7 +1082,7 @@ MogDB=# DROP SCHEMA IF EXISTS joe CASCADE; - LIKE INCLUDING DEFAULTS -- 源表上的字段缺省表达式只有在指定INCLUDING DEFAULTS时,才会复制到新表中。缺省是不包含缺省表达式的,即新表中的所有字段的缺省值都是NULL。 +- 源表上的字段缺省表达式只有在指定INCLUDING DEFAULTS时,才会复制到新表中。缺省是包含缺省表达式的,即新表中的所有字段的缺省值,如果在原表中是表达式,则新表中也是表达式。 - LIKE INCLUDING CONSTRAINTS @@ -1099,7 +1104,7 @@ MogDB=# DROP SCHEMA IF EXISTS joe CASCADE; - 如果指定了INCLUDING PARTITION,则源表的分区定义会复制到新表中,同时新表将不能再使用PARTITION BY子句。默认情况下,不拷贝源表的分区定义。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知**: 列表/哈希分区表暂不支持LIKE INCLUDING PARTITION。 + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-notice.gif) **须知:** 列表/哈希分区表暂不支持LIKE INCLUDING PARTITION。 - LIKE INCLUDING RELOPTIONS diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/INSERT.md b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/INSERT.md index 4f96b2c5ad0c2577ddc9aeb0c56642f84ed5311c..06c456205bef899083b4cbbbe1b6a3842ad8530b 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/INSERT.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/sql-syntax/INSERT.md @@ -23,18 +23,18 @@ date: 2021-05-18 - 当连接到TD兼容的数据库时,td_compatible_truncation参数设置为on时,将启用超长字符串自动截断功能,在后续的insert语句中(不包含外表的场景下),对目标表中char和varchar类型的列上插入超长字符串时,系统会自动按照目标表中相应列定义的最大长度对超长字符串进行截断。 - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > 如果向字符集为字节类型编码(SQL_ASCII,LATIN1等)的数据库中插入多字节字符数据(如汉字等),且字符数据跨越截断位置,这种情况下,按照字节长度自动截断,自动截断后会在尾部产生非预期结果。如果用户有对于截断结果正确性的要求,建议用户采用UTF8等能够按照字符截断的输入字符集作为数据库的编码集。 ## 语法格式 ```ebnf+diagram Insert ::= [ WITH [ RECURSIVE ] with_query [, ...] ] -INSERT [/*+ plan_hint */] INTO table_name [partition_clause] [ AS alias ] [ ( column_name [, ...] ) ] +INSERT [INTO] table_name [ ( column_name [, ...] ) ] { DEFAULT VALUES | VALUES {( { expression | DEFAULT } [, ...] ) }[, ...] | query } - [ ON DUPLICATE KEY UPDATE { NOTHING | { column_name = { expression | DEFAULT } } [, ...] [ WHERE condition ] }] + [ ON DUPLICATE KEY UPDATE {{ column_name = { expression | DEFAULT } } [, ...] | NOTHING} ] [ RETURNING {* | {output_expression [ [ AS ] output_name ] }[, ...]} ]; ``` @@ -57,14 +57,14 @@ INSERT [/*+ plan_hint */] INTO table_name [partition_clause] [ AS alias ] [ ( co - column_name指定子查询结果集中显示的列名。 - 每个子查询可以是SELECT,VALUES,INSERT,UPDATE或DELETE语句。 - + - 用户可以使用MATERIALIZED / NOT MATERIALIZED对CTE进行修饰。 - + - 如果声明为MATERIALIZED,WITH查询将被物化,生成一个子查询结果集的拷贝,在引用处直接查询该拷贝,因此WITH子查询无法和主干SELECT语句进行联合优化(如谓词下推、等价类传递等),对于此类场景可以使用NOT MATERIALIZED进行修饰,如果WITH查询语义上可以作为子查询内联执行,则可以进行上述优化。 - + - 如果用户没有显示声明物化属性则遵守以下规则:如果CTE只在所属主干语句中被引用一次,且语义上支持内联执行,则会被改写为子查询内联执行,否则以CTE Scan的方式物化执行。 - - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: + + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** > > INSERT ON DUPLICATE KEY UPDATE不支持WITH及WITH RECURSIVE子句。 - **plan_hint子句** diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/1-gs_check.md b/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/1-gs_check.md index 1fbb3544587564dfd061d67795de039a1c343b70..8c7222898b86d2411e703a6da4abdffd60e204a2 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/1-gs_check.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/1-gs_check.md @@ -9,7 +9,7 @@ date: 2021-06-07 ## 背景信息 -gs_check改进增强,统一化当前系统中存在的各种检查工具,例如gs_check,gs_checkos等,帮助用户在MogDB运行过程中,全量的检查MogDB运行环境,操作系统环境,网络环境及数据库执行环境,也有助于在MogDB重大操作之前对各类环境进行全面检查,有效保证操作执行成功。 +gs_check改进增强,统一化当前系统中存在的各种检查工具,例如gs_check,gs_checkos等,帮助用户在MogDB运行过程中,全量的检查MogDB运行环境,操作系统环境,网络环境及数据库执行环境;根据场景scene定义检测项,进行可定制的检测项执行,实现检测结果保存,以及两个检测结果的差异比较;也有助于在MogDB重大操作之前对各类环境进行全面检查,有效保证操作执行成功。 ## 注意事项 @@ -30,7 +30,13 @@ gs_check改进增强,统一化当前系统中存在的各种检查工具,例 - 场景检查: ```bash - gs_check -e SCENE_NAME [-U USER] [-L] [-l LOGFILE] [-o OUTPUTDIR] [--skip-root-items] [--time-out=SECS][--set][--routing][--skip-items] + gs_check -e SCENE_NAME [-U USER] [-L] [-l LOGFILE] [-o OUTPUTDIR] [--skip-root-items] [--time-out=SECS] [--set] [--routing] [--skip-items] + ``` + +- 场景比较: + + ```bash + gs_check --compare --source-output-dir=OUTPUTDIR --target-output-dir=OUTPUTDIR --diff-output-dir=OUTPUTDIR ``` - 显示帮助信息: @@ -113,6 +119,22 @@ gs_check改进增强,统一化当前系统中存在的各种检查工具,例 显示版本号信息。 +- --source-output-dir + + 指定被比较文件(前一次场景检查的结果)存在的路径,需包含文件名。 + +- --target-output-dir + + 指定比较文件(本次场景检查的结果)存在的路径,需包含文件名。 + +- --diff-output-dir + + 指定差异比较结果的输出路径。 + +- --compare + + 如果指定了--compare参数,则表示指定gs_check进行场景比较。 + ### MogDB状态检查表 - OS @@ -817,7 +839,7 @@ gs_check改进增强,统一化当前系统中存在的各种检查工具,例 否 - + - Others @@ -833,7 +855,7 @@ gs_check改进增强,统一化当前系统中存在的各种检查工具,例
-> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: CheckNetSpeed检查项: +> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** CheckNetSpeed检查项: > > - CheckNetSpeed不支持-L本地检查模式,-L模式无法构造网络压力,检查的结果不准确。 > - 在节点数小于6时,speed_test构造的网络压力可能无法跑满带宽,可能会造成检查结果不准确。 @@ -859,7 +881,7 @@ gs_check改进增强,统一化当前系统中存在的各种检查工具,例 item name为检查项名称 - 注:用户需自行保证自定义xml的正确性 + 注意:用户需自行保证自定义xml的正确性 4. 在home/package/script/gspylib/inspection/config执行如下命令,将此文件分发至执行检查的各个节点 @@ -867,7 +889,7 @@ gs_check改进增强,统一化当前系统中存在的各种检查工具,例 scp scene_upgrade.xml SIA1000068994:home/package/script/gspylib/inspection/config/ ``` - > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: home/package/script/gspylib/inspection/config就是新建的场景配置文件的绝对路径。 + > ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** home/package/script/gspylib/inspection/config就是新建的场景配置文件的绝对路径。 5. 换至omm用户,执行以下命令查看检查结果。 @@ -1035,8 +1057,8 @@ gs_check改进增强,统一化当前系统中存在的各种检查工具,例 | net.core.netdev_max_backlog | 在每个网络接口接收数据包的速率比内核处理这些包的速率快时,允许送到队列的数据包的最大数目。 | 65535 | | net.ipv4.tcp_max_syn_backlog | 记录的那些尚未收到客户端确认信息的连接请求的最大值。 | 65535 | | net.ipv4.tcp_fin_timeout | 系统默认的超时时间。 | 60 | -| kernel.shmall | 内核可用的共享内存总量。 | 1073741824 | -| kernel.shmmax | 内核参数定义单个共享内存段的最大值。 | 4398046511104 | +| kernel.shmall | 内核可用的共享内存总量。 | 1152921504606846720 | +| kernel.shmmax | 内核参数定义单个共享内存段的最大值。 | 18446744073709551615 | | net.ipv4.tcp_sack | 启用有选择的应答,通过有选择地应答乱序接受到的报文来提高性能,让发送者只发送丢失的报文段(对于广域网来说)这个选项应该启用,但是会增加对CPU的占用。
- 0表示关闭。
- 1表示开启。 | 1 | | net.ipv4.tcp_timestamps | TCP时间戳(会在TCP包头增加12节),以一种比重发超时更精确的方式(参考RFC 1323)来启用对RTT的计算,启用可以实现更好的性能。
- 0表示关闭。
- 1表示开启。 | 1 | | vm.extfrag_threshold | 系统内存不够用时,linux会为当前系统内存碎片情况打分,如果超过vm.extfrag_threshold的值,kswapd就会触发memory compaction。所以这个值设置的接近1000,说明系统在内存碎片的处理倾向于把旧的页换出,以符合申请的需要,而设置接近0,表示系统在内存碎片的处理倾向做memory compaction。 | 500 | @@ -1129,6 +1151,12 @@ Failed. All check items run completed. Total:57 Success:49 Warning:5 NG:3 For more information please refer to /opt/huawei/wisequery/script/gspylib/inspection/output/CheckReport_inspect_201902207129254785.tar.gz ``` +执行场景: + +```bash +gs_check --compare --source-output-dir=/data/scene_result/CheckResult_202202044003451613 --target-output-dir=/data/scene_result/CheckResult_202203044003451613 --diff-output-dir=/data/diff_report +``` + ## 相关命令 [gs_checkos](2-gs_checkos),[gs_checkperf](3-gs_checkperf) diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/gs_gucquery.md b/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/gs_gucquery.md new file mode 100644 index 0000000000000000000000000000000000000000..3670fa39b6b72f6ffffaccef56e19b39ae05794d --- /dev/null +++ b/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/gs_gucquery.md @@ -0,0 +1,50 @@ +--- +title: gs_gucquery +summary: gs_gucquery +author: Zhang Cuiping +date: 2022-06-22 +--- + +# gs_gucquery + +## 功能介绍 + +gs_gucquery工具可自动收集、整理、导出GUC值,并进行差异比较。 + +## 语法 + +- 导出GUC值 + + ```bash + gs_gucquery -t query [-o OUTPUTFILE] [-p PORT] + ``` + +- 比较GUC值 + + ```bash + gs_gucquery -t compare --source-file=OUTPUTFILE --target-file=OUTPUTFILE --diff-file=OUTPUTDIR + ``` + +## 参数说明 + +| 参数 | 说明 | +| ------------- | ------------------------------------------------------------ | +| -t | 指定控制参数的类型。
取值范围:query或者compare | +| --source-file | 指定被比较文件(前一次GUC值导出的结果)存在的路径,需包含文件名。 | +| --target-file | 指定比较文件(本次GUC值导出的结果)存在的路径,需包含文件名。 | +| -o | 指定收集的GUC值的结果输出文件路径。
如果不指定-o参数,则会在屏幕上输出结果。 | +| -p | 指定要收集的GUC值所对应的MogDB进程。 | + +## 示例 + +1. 导出GUC值 + + ```bash + gs_gucquery -t query -o /data/gucRes + ``` + +2. 比较GUC值 + + ```bash + gs_gucquery -t compare --source-file=/data/gucRes/GucQuery_20220203091229.csv --target-file /data/gucRes/GucQuery_20220204101330.csv --diff-file /data/gucRes/diffRes + ``` diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/gs_watch.md b/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/gs_watch.md new file mode 100644 index 0000000000000000000000000000000000000000..3dc9a29c6b73fd338d41221bdb3498095b69ab77 --- /dev/null +++ b/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/server-tools/gs_watch.md @@ -0,0 +1,52 @@ +--- +title: gs_watch +summary: gs_watch +author: Zhang Cuiping +date: 2022-06-22 +--- + +# gs_watch + +## 功能介绍 + +gs_watch工具可监测MogDB进程。当监测到MogDB发生故障崩溃导致它从process list消失时,gs_watch会通过调用gs_collector,自动触发对系统状态的收集。 + +## 语法 + +- 启动自动触发 + + ```bash + gs_watch -t start [-o OUTDIR] [--pid=PID] + ``` + +- 关闭自动触发 + + ```bash + gs_watch -t stop [--pid=PID] + ``` + +## 参数说明 + +| 参数 | 说明 | +| ----- | ------------------------------------------------------------ | +| -t | 指定操作类型。
取值范围:start或者stop | +| -o | 指定系统崩溃时,gs_collector收集结果的导出路径。
根据gs_collector触发时间创建时间数字为命名的子文件夹,支持多次收集结果放置不同子路径。具体子文件夹路径为yyyymmddhhMMss。
注意:gs_collector如果不指定-o参数,则检查结果会默认以压缩包的形式输出到$GAUSSLOG路径中。 | +| --pid | 指定进程ID。
如果有多个进程时,需要设置该参数指定要监测或停止的具体进程。否则参数会报错。 | + +## 示例 + +1. 启动自动触发 + + ```bash + gs_watch -t start -o /opt/mogdb3/data --pid 23550 + ``` + +2. 关闭自动触发 + + ```bash + gs_watch -t stop --pid=23550 + ``` + +## 相关命令 + +[gs_collector](4-gs_collector) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/tools-used-in-the-internal-system/16-gstrace.md b/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/tools-used-in-the-internal-system/16-gstrace.md index b7f7788482b9d73c02f6a1917d35344bb1a7278a..83e8fb0e59d1bb040c2768f8993888e3b8a3e0af 100644 --- a/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/tools-used-in-the-internal-system/16-gstrace.md +++ b/product/zh/docs-mogdb/v3.0/reference-guide/tool-reference/tools-used-in-the-internal-system/16-gstrace.md @@ -9,9 +9,9 @@ date: 2021-06-07 ## 功能介绍 -gstrace是MogDB提供的用来跟踪内核代码执行路径、记录内核数据结构、分析代码性能的工具。Trace的有限点位和数据在版本中被固化,无法动态添加和删除。 +gstrace是MogDB提供的用来跟踪内核代码执行路径、记录内核数据结构、分析代码性能的工具。gstrace允许用户指定一个或多个模块和方法进行追踪。Trace的有限点位和数据在版本中被固化,无法动态添加和删除。 -> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-warning.gif) **警告**: +> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-warning.gif) **警告:** > > 1. 对内核dump指定内存变量的数据用于诊断分析,不存在直接指定任意寄存器或者内存地址的行为。读取的内存地址均是在开发阶段硬编码,没有任意地读取或者修改寄存器或内存的操作。 > 2. Trace点可能涉及敏感数据,收集trace信息前需要同用户协商,授权和许可后方可收集。 @@ -19,33 +19,57 @@ gstrace是MogDB提供的用来跟踪内核代码执行路径、记录内核数 > 4. Trace仅用于诊断目的,开启trace将对性能产生一定影响,影响的大小视负载的高低,trace的模块而不同。 > 5. Trace工具的权限为0700,仅限于数据库用户读、写和执行。 > -> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明**: 如果进程异常终止,/dev/shm/ 目录下将会有gstrace_trace_cfg_*残留,可以手动清除。 +> ![img](https://cdn-mogdb.enmotech.com/docs-media/icon/icon-note.gif) **说明:** 如果进程异常终止,/dev/shm/ 目录下将会有gstrace_trace_cfg_*残留,可以手动清除。 ## 语法 -```bash -gstrace [start|stop|config|dump|detailcodepath|analyze] [-p ][-s ] [-f ] [-o ] [-t ] -``` +- 模块开关 + + ```bash + gstrace start [-p ] [-s ][-o ] [-q [,]*] -> .[ALL|[[&]*]] + ``` + + 注意:由于语法定义中使用了‘,’,‘.’,‘&’作为分隔符,因此定义模块名时不可包括这些符号。除此之外,-q参数不能和原有的内部trace -m参数同时定义,因为两个选项都会影响trace结果,当同时定义时,会返回对应错误信息。 + +- 连接执行状态导出 + + ```bash + gstrace dump_usess -p -o + gstrace analyze_usess -f -o + ``` ## 参数说明 -**表 1** gs_trace参数说明 - -| 参数 | 说明 | -| :------------- | :----------------------------------------------------------- | -| start | 开始记录trace。 | -| stop | 停止trace,释放存储信息的共享内存trace buffer。注意:trace buffer中已捕获trace信息会丢失。 | -| config | 显示trace的配置信息。 | -| dump | 将共享内存中的trace信息写入指定文件。若没有启动trace将报错。 | -| detail | 将dump出来的二进制文件解析成文本文件,显示trace点的线程、时间信息。 | -| codepath | 提取dump文件中的函数调用信息,按照调用栈的方式显示。 | -| analyze | 统计各个函数的执行次数、总耗时、平均耗时、最长耗时、最短耗时。 | -| -p PORT | 指定启动trace功能的实例侦听的端口号。 | -| -f DUMP_FILE | 指定dump导出的trace文件。 | -| -o OUTPUT_FILE | 指定写入的文件。 | -| -t STEP_SIZE | 指定分片分析的时间跨度(秒),可选。将生成单独的{OUTPUT_FILE}.step文件。 | -| -m MASK | 指定哪些模块、函数需要追踪,如果参数为空,则追踪添加trace接口的所有模块的所有函数。
格式:[comp…][ALL].[func…][ALL]
描述:
- comp 是模块列表,使用‘,’分隔,例如:executer,mogdb。也可以使用序号,例如:executer,2。
- func 是function列表,使用‘,’ 分隔。 例如:sql_execute_ddl, sql_execute_dcl。也可以使用序号指代模块中第几个function,例如:2。
- 设置成ALL表示所有模块或所有function被trace。
示例:
- executer,mogdb.ALL :所有定义定义在executer和mogdb模块下的function被trace。
- executer,mogdb.sql_execute_ddl :定义在executer 下的Function sql_execute_ddl被trace. mogdb模块被忽略,因为下面没有该function 。
- executer,mogdb.1 :定义在模块executer和mogdb下的第一个function被trace。
ALL.1,2 :定义在所有模块下的第一,二个function被trace。 | -| -s BUFFER_SIZE | 指定用于trace功能的共享内存大小,默认为1G。如果指定的BUFFER_SIZE小于最小值2048,系统将自动调整为最小值。如果指定的BUFFER_SIZE不是2^N^(二的N次方),则向下对齐2^N^;例如:指定BUFFER_SIZE=3072,由于2^11^<3072<2^12^,系统将调整为2048。 | +- 模块开关参数 + +| 参数 | 说明 | +| :---------------- | :----------------------------------------------------------- | +| start | 开始记录trace。 | +| stop | 停止trace,释放存储信息的共享内存trace buffer。注意:trace buffer中已捕获trace信息会丢失。 | +| config | 显示trace的配置信息。 | +| dump | 将共享内存中的trace信息写入指定文件。若没有启动trace将报错。 | +| detail | 将dump出来的二进制文件解析成文本文件,显示trace点的线程、时间信息。 | +| codepath | 提取dump文件中的函数调用信息,按照调用栈的方式显示。 | +| analyze | 统计各个函数的执行次数、总耗时、平均耗时、最长耗时、最短耗时。 | +| -p PORT | 指定启动trace功能的实例侦听的端口号。 | +| -f DUMP_FILE | 指定dump导出的trace文件。 | +| -o OUTPUT_FILE | 指定写入的文件。 | +| -t STEP_SIZE | 指定分片分析的时间跨度(秒),可选。将生成单独的{OUTPUT_FILE}.step文件。 | +| -m MASK | 指定哪些模块、函数需要追踪,如果参数为空,则追踪添加trace接口的所有模块的所有函数。
格式:[comp…][ALL].[func…][ALL]
描述:
- comp 是模块列表,使用‘,’分隔,例如:executer,mogdb。也可以使用序号,例如:executer,2。
- func 是function列表,使用‘,’ 分隔。 例如:sql_execute_ddl, sql_execute_dcl。也可以使用序号指代模块中第几个function,例如:2。
- 设置成ALL表示所有模块或所有function被trace。
示例:
- executer,mogdb.ALL :所有定义定义在executer和mogdb模块下的function被trace。
- executer,mogdb.sql_execute_ddl :定义在executer 下的Function sql_execute_ddl被trace. mogdb模块被忽略,因为下面没有该function 。
- executer,mogdb.1 :定义在模块executer和mogdb下的第一个function被trace。
ALL.1,2 :定义在所有模块下的第一,二个function被trace。 | +| -s BUFFER_SIZE | 指定用于trace功能的共享内存大小,默认为1G。如果指定的BUFFER_SIZE小于最小值2048,系统将自动调整为最小值。如果指定的BUFFER_SIZE不是2^N^(二的N次方),则向下对齐2^N^;例如:指定BUFFER_SIZE=3072,由于2^11^<3072<2^12^,系统将调整为2048。 | +| -q COMP_FUNC_PAIR | 指定一对或多对模块和方法。 | +| COMP_NAME | 指定模块名称。 | +| FUNC_NAME | 指定方法名称。 | + +- 连接执行状态导出参数 + +| 参数 | 说明 | +| ------------- | ------------------------------------------------------------ | +| dump_usess | 表示导出连接相关状态数据信息。
采用原始二进制格式。 | +| analyze_usess | 表示分析生成可阅读文件。
采用文本可阅读格式。 | +| -p | 指定控制MogDB服务器端口。 | +| -o | 指定输出的文件,可包含路径。输出文件需要不存在,否则报错。 | +| -f | 指定输入的文件,可包含路径。输入文件必须存在且符合格式要求,否则报错。 | ## 示例 @@ -96,3 +120,27 @@ gstrace [start|stop|config|dump|detailcodepath|analyze] [-p ][-s - - -# MogDB Documentation 3.0 - -## 特性描述 - -+ 高性能 - + [CBO优化器](/characteristic-description/high-performance/1-cbo-optimizer.md) - + [支持LLVM](/characteristic-description/high-performance/2-llvm.md) - + [向量化引擎](/characteristic-description/high-performance/3-vectorized-engine.md) - + [行列混合存储](/characteristic-description/high-performance/4-hybrid-row-column-store.md) - + [自适应压缩](/characteristic-description/high-performance/5-adaptive-compression.md) - + [SQL by pass](/characteristic-description/high-performance/6-sql-by-pass.md) - + [鲲鹏NUMA架构优化](/characteristic-description/high-performance/7-kunpeng-numa-architecture-optimization.md) - + [支持线程池高并发](/characteristic-description/high-performance/8-high-concurrency-of-thread-pools.md) - + [SMP并行执行](/characteristic-description/high-performance/9-smp-for-parallel-execution.md) - + [Xlog no Lock Flush](/characteristic-description/high-performance/10-xlog-no-lock-flush.md) - + [Parallel Page-based Redo For Ustore](/characteristic-description/high-performance/11-parallel-page-based-redo-for-ustore.md) - + [行存转向量化](/characteristic-description/high-performance/12-row-store-execution-to-vectorized-execution.md) -+ 高可用 - + [主备机](/characteristic-description/high-availability/1-primary-standby.md) - + [逻辑复制](/characteristic-description/high-availability/2-logical-replication.md) - + [在线节点替换](/characteristic-description/high-availability/3-online-node-replacement.md) - + [逻辑备份](/characteristic-description/high-availability/4-logical-backup.md) - + [物理备份](/characteristic-description/high-availability/5-physical-backup.md) - + [作业失败自动重试](/characteristic-description/high-availability/6-automatic-job-retry-upon-failure.md) - + [极致RTO](/characteristic-description/high-availability/7-ultimate-rto.md) - + [级联备机](/characteristic-description/high-availability/8-cascaded-standby-server.md) - + [延时回放](/characteristic-description/high-availability/9-delayed-replay.md) - + [备机增加删除](/characteristic-description/high-availability/10-adding-or-deleting-a-standby-server.md) - + [延迟进入最大可用模式](/characteristic-description/high-availability/11-delaying-entering-the-maximum-availability-mode.md) - + [并行逻辑解码](/characteristic-description/high-availability/12-parallel-logical-decoding.md) - + [DCF](/characteristic-description/high-availability/13-dcf.md) - + [CM](/characteristic-description/high-availability/14-cm.md) - + [支持global syscache](/characteristic-description/high-availability/15-global-syscache.md) - + [支持备机build备机](/characteristic-description/high-availability/16-using-a-standby-node-to-build-a-standby-node.md) -+ 维护性 - + [灰度升级](/characteristic-description/maintainability/1-gray-upgrade.md) - + [支持WDR诊断报告](/characteristic-description/maintainability/2-workload-diagnosis-report.md) - + [慢SQL诊断](/characteristic-description/maintainability/3-slow-sql-diagnosis.md) - + [Session性能诊断](/characteristic-description/maintainability/4-session-performance-diagnosis.md) - + [系统KPI辅助诊断](/characteristic-description/maintainability/5-system-kpi-aided-diagnosis.md) -+ 数据库安全 - + [访问控制模型](/characteristic-description/database-security/1-access-control-model.md) - + [控制权和访问权分离](/characteristic-description/database-security/2-separation-of-control-and-access-permissions.md) - + [数据库认证机制](/characteristic-description/database-security/3-database-encryption-authentication.md) - + [数据加密存储](/characteristic-description/database-security/4-data-encryption-and-storage.md) - + [数据库审计](/characteristic-description/database-security/5-database-audit.md) - + [网络通信安全](/characteristic-description/database-security/6-network-communication-security.md) - + [资源标签机制](/characteristic-description/database-security/7-resource-label.md) - + [统一审计机制](/characteristic-description/database-security/8-unified-audit.md) - + [动态数据脱敏机制](/characteristic-description/database-security/9-dynamic-data-anonymization.md) - + [行级访问控制](/characteristic-description/database-security/10-row-level-access-control.md) - + [用户口令强度校验机制](/characteristic-description/database-security/11-password-strength-verification.md) - + [全密态数据库等值查询](/characteristic-description/database-security/12-equality-query-in-a-fully-encrypted-database.md) - + [账本数据库机制](/characteristic-description/database-security/13-ledger-database-mechanism.md) - + [透明数据加密](/characteristic-description/database-security/14-transparent-data-encryption.md) -+ 企业级特性 - + [函数及存储过程支持](/characteristic-description/enterprise-level-features/1-support-for-functions-and-stored-procedures.md) - + [支持SQL hint](/characteristic-description/enterprise-level-features/2-sql-hints.md) - + [全文索引](/characteristic-description/enterprise-level-features/3-full-text-indexing.md) - + [Copy接口支持容错机制](/characteristic-description/enterprise-level-features/4-copy-interface-for-error-tolerance.md) - + [分区](/characteristic-description/enterprise-level-features/5-partitioning.md) - + [高级分析函数支持](/characteristic-description/enterprise-level-features/6-support-for-advanced-analysis-functions.md) - + [物化视图](/characteristic-description/enterprise-level-features/7-materialized-view.md) - + [支持HyperLogLog](/characteristic-description/enterprise-level-features/8-hyperloglog.md) - + [在线添加索引](/characteristic-description/enterprise-level-features/9-creating-an-index-online.md) - + [自治事务](/characteristic-description/enterprise-level-features/10-autonomous-transaction.md) - + [全局临时表](/characteristic-description/enterprise-level-features/11-global-temporary-table.md) - + [伪列ROWNUM](/characteristic-description/enterprise-level-features/12-pseudocolumn-rownum.md) - + [支持存储过程调试](/characteristic-description/enterprise-level-features/13-stored-procedure-debugging.md) - + [JDBC客户端负载均衡与读写分离](/characteristic-description/enterprise-level-features/14-jdbc-client-load-balancing-and-readwrite-isolation.md) - + [In-place Update存储引擎](/characteristic-description/enterprise-level-features/15-in-place-update-storage-engine.md) - + [发布订阅](/characteristic-description/enterprise-level-features/16-publication-subscription.md) - + [外键锁增强](/characteristic-description/enterprise-level-features/17-foreign-key-lock-enhancement.md) - + [支持OLTP场景数据压缩](/characteristic-description/enterprise-level-features/18-data-compression-in-oltp-scenarios.md) -+ 应用开发接口 - + [支持标准SQL](/characteristic-description/application-development-interfaces/1-standard-sql.md) - + [支持标准开发接口](/characteristic-description/application-development-interfaces/2-standard-development-interfaces.md) - + [PG接口兼容](/characteristic-description/application-development-interfaces/3-postgresql-api-compatibility.md) - + [支持PL/Java](/characteristic-description/application-development-interfaces/4-pl-java.md) -+ AI能力 - + AI4DB:数据库自治运维 - + [数据库指标采集、预测与异常监控](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/1-database-metric-collection-forecast-and-exception-detection.md) - + [慢SQL根因分析](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/2-root-cause-analysis-for-slow-sql-statements.md) - + [索引推荐](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/3-index-recommendation.md) - + [参数调优与诊断](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/4-parameter-tuning-and-diagnosis.md) - + [慢SQL发现](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/5-slow-sql-statement-discovery.md) - + [DB4AI:数据库驱动AI](/characteristic-description/ai-capabilities/db4ai-database-driven-ai.md) - + AI in DB:数据库内AI功能 - + [Predictor:AI查询时间预测](/characteristic-description/ai-capabilities/ai-in-db/predictor-ai-query-time-forecasting.md) -+ 工具链 - + [MySQL->MogDB迁移工具chameleon](/characteristic-description/tool-chain/mysql-to-mogdb-migration-tool-chameleon.md) - + [MogDB客户端工具DataStudio](/characteristic-description/tool-chain/mogdb-client-tool-datastudio.md) -+ 中间件 - + [分布式数据库能力](/characteristic-description/middleware/distributed-database-capability.md) - + [使用kubernetes部署分布式数据库](/characteristic-description/middleware/deploying-a-distributed-database-using-kubernetes.md) \ No newline at end of file + + +# MogDB Documentation 3.0 + +## Documentation List + ++ 关于MogDB + + [MogDB简介](/overview.md) + + [MogDB与openGauss](/about-mogdb/MogDB-compared-to-openGauss.md) + + MogDB新特性 + + [MogDB 3.0.0](/about-mogdb/mogdb-new-feature/3.0.0.md) + + 开源组件 + + [容器版本的MogDB](/about-mogdb/open-source-components/2-docker-based-mogdb.md) + + [compat-tools](/about-mogdb/open-source-components/compat-tools.md) + + [mogdb-monitor](/about-mogdb/open-source-components/mogdb-monitor.md) + + [wal2json](/about-mogdb/open-source-components/5-wal2json-extention-for-mogdb&opengauss.md) + + [mog_filedump](/about-mogdb/open-source-components/mog_filedump.md) + + [mog_xlogdump](/about-mogdb/open-source-components/mog_xlogdump.md) + + [PostGIS](/about-mogdb/open-source-components/PostGIS.md) + + [使用限制](/about-mogdb/usage-limitations.md) + + [法律声明](/about-mogdb/terms-of-use.md) ++ 快速入门 + + [MogDB实训平台](/quick-start/mogdb-playground.md) + + [容器化安装(beta版)](/quick-start/container-based-installation.md) + + [单节点安装(630后发布)](/quick-start/installation-on-a-single-node.md) + + 访问数据库 + + 使用命令行访问MogDB + + [gsql](/quick-start/mogdb-access/use-cli-to-access-mogdb/gsql.md) + + [pgcli](/quick-start/mogdb-access/use-cli-to-access-mogdb/pgcli.md) + + 使用图形工具访问MogDB + + [Data Studio](/quick-start/mogdb-access/use-gui-tools-to-access-mogdb/datastudio.md) + + [DBeaver](/quick-start/mogdb-access/use-gui-tools-to-access-mogdb/dbeaver.md) + + 使用中间件访问MogDB + + [WebLogic配置MogDB数据源参考](/quick-start/mogdb-access/use-middleware-to-access-mogdb/weblogic-configures-mogdb(postgresql)-data-source-reference.md) + + [WebSphere配置MogDB数据源参考](/quick-start/mogdb-access/use-middleware-to-access-mogdb/websphere-configures-mogdb(postgresql)-data-source-reference.md) + + 使用编程语言访问MogDB + + [Java](/quick-start/mogdb-access/use-programming-language-to-access-mogdb/java.md) + + [C/C++](/quick-start/mogdb-access/use-programming-language-to-access-mogdb/c-cpp.md) + + [Python](/quick-start/mogdb-access/use-programming-language-to-access-mogdb/python.md) + + [Go](/quick-start/mogdb-access/use-programming-language-to-access-mogdb/go.md) + + [Rust](/quick-start/mogdb-access/use-programming-language-to-access-mogdb/rust.md) + + [NodeJS](/quick-start/mogdb-access/use-programming-language-to-access-mogdb/nodejs.md) + + [使用样本数据集Mogila](/quick-start/mogila.md) ++ 特性描述 + + 高性能 + + [CBO优化器](/characteristic-description/high-performance/1-cbo-optimizer.md) + + [支持LLVM](/characteristic-description/high-performance/2-llvm.md) + + [向量化引擎](/characteristic-description/high-performance/3-vectorized-engine.md) + + [行列混合存储](/characteristic-description/high-performance/4-hybrid-row-column-store.md) + + [自适应压缩](/characteristic-description/high-performance/5-adaptive-compression.md) + + [SQL by pass](/characteristic-description/high-performance/6-sql-by-pass.md) + + [鲲鹏NUMA架构优化](/characteristic-description/high-performance/7-kunpeng-numa-architecture-optimization.md) + + [支持线程池高并发](/characteristic-description/high-performance/8-high-concurrency-of-thread-pools.md) + + [SMP并行执行](/characteristic-description/high-performance/9-smp-for-parallel-execution.md) + + [Xlog no Lock Flush](/characteristic-description/high-performance/10-xlog-no-lock-flush.md) + + [Parallel Page-based Redo For Ustore](/characteristic-description/high-performance/11-parallel-page-based-redo-for-ustore.md) + + [行存转向量化](/characteristic-description/high-performance/12-row-store-execution-to-vectorized-execution.md) + + 高可用 + + [主备机](/characteristic-description/high-availability/1-primary-standby.md) + + [逻辑复制](/characteristic-description/high-availability/2-logical-replication.md) + + [在线节点替换](/characteristic-description/high-availability/3-online-node-replacement.md) + + [逻辑备份](/characteristic-description/high-availability/4-logical-backup.md) + + [物理备份](/characteristic-description/high-availability/5-physical-backup.md) + + [作业失败自动重试](/characteristic-description/high-availability/6-automatic-job-retry-upon-failure.md) + + [极致RTO](/characteristic-description/high-availability/7-ultimate-rto.md) + + [级联备机](/characteristic-description/high-availability/8-cascaded-standby-server.md) + + [延时回放](/characteristic-description/high-availability/9-delayed-replay.md) + + [备机增加删除](/characteristic-description/high-availability/10-adding-or-deleting-a-standby-server.md) + + [延迟进入最大可用模式](/characteristic-description/high-availability/11-delaying-entering-the-maximum-availability-mode.md) + + [并行逻辑解码](/characteristic-description/high-availability/12-parallel-logical-decoding.md) + + [DCF](/characteristic-description/high-availability/13-dcf.md) + + [CM](/characteristic-description/high-availability/14-cm.md) + + [支持global syscache](/characteristic-description/high-availability/15-global-syscache.md) + + [支持备机build备机](/characteristic-description/high-availability/16-using-a-standby-node-to-build-a-standby-node.md) + + 维护性 + + [灰度升级](/characteristic-description/maintainability/1-gray-upgrade.md) + + [支持WDR诊断报告](/characteristic-description/maintainability/2-workload-diagnosis-report.md) + + [慢SQL诊断](/characteristic-description/maintainability/3-slow-sql-diagnosis.md) + + [Session性能诊断](/characteristic-description/maintainability/4-session-performance-diagnosis.md) + + [系统KPI辅助诊断](/characteristic-description/maintainability/5-system-kpi-aided-diagnosis.md) + + [故障诊断](/characteristic-description/maintainability/fault-diagnosis.md) + + 数据库安全 + + [访问控制模型](/characteristic-description/database-security/1-access-control-model.md) + + [控制权和访问权分离](/characteristic-description/database-security/2-separation-of-control-and-access-permissions.md) + + [数据库认证机制](/characteristic-description/database-security/3-database-encryption-authentication.md) + + [数据加密存储](/characteristic-description/database-security/4-data-encryption-and-storage.md) + + [数据库审计](/characteristic-description/database-security/5-database-audit.md) + + [网络通信安全](/characteristic-description/database-security/6-network-communication-security.md) + + [资源标签机制](/characteristic-description/database-security/7-resource-label.md) + + [统一审计机制](/characteristic-description/database-security/8-unified-audit.md) + + [动态数据脱敏机制](/characteristic-description/database-security/9-dynamic-data-anonymization.md) + + [行级访问控制](/characteristic-description/database-security/10-row-level-access-control.md) + + [用户口令强度校验机制](/characteristic-description/database-security/11-password-strength-verification.md) + + [全密态数据库等值查询](/characteristic-description/database-security/12-equality-query-in-a-fully-encrypted-database.md) + + [账本数据库机制](/characteristic-description/database-security/13-ledger-database-mechanism.md) + + [透明数据加密](/characteristic-description/database-security/14-transparent-data-encryption.md) + + 企业级特性 + + [函数及存储过程支持](/characteristic-description/enterprise-level-features/1-support-for-functions-and-stored-procedures.md) + + [支持SQL hint](/characteristic-description/enterprise-level-features/2-sql-hints.md) + + [全文索引](/characteristic-description/enterprise-level-features/3-full-text-indexing.md) + + [Copy接口支持容错机制](/characteristic-description/enterprise-level-features/4-copy-interface-for-error-tolerance.md) + + [分区](/characteristic-description/enterprise-level-features/5-partitioning.md) + + [高级分析函数支持](/characteristic-description/enterprise-level-features/6-support-for-advanced-analysis-functions.md) + + [物化视图](/characteristic-description/enterprise-level-features/7-materialized-view.md) + + [支持HyperLogLog](/characteristic-description/enterprise-level-features/8-hyperloglog.md) + + [在线添加索引](/characteristic-description/enterprise-level-features/9-creating-an-index-online.md) + + [自治事务](/characteristic-description/enterprise-level-features/10-autonomous-transaction.md) + + [全局临时表](/characteristic-description/enterprise-level-features/11-global-temporary-table.md) + + [伪列ROWNUM](/characteristic-description/enterprise-level-features/12-pseudocolumn-rownum.md) + + [支持存储过程调试](/characteristic-description/enterprise-level-features/13-stored-procedure-debugging.md) + + [JDBC客户端负载均衡与读写分离](/characteristic-description/enterprise-level-features/14-jdbc-client-load-balancing-and-readwrite-isolation.md) + + [In-place Update存储引擎](/characteristic-description/enterprise-level-features/15-in-place-update-storage-engine.md) + + [发布订阅](/characteristic-description/enterprise-level-features/16-publication-subscription.md) + + [外键锁增强](/characteristic-description/enterprise-level-features/17-foreign-key-lock-enhancement.md) + + [支持OLTP场景数据压缩](/characteristic-description/enterprise-level-features/18-data-compression-in-oltp-scenarios.md) + + [事务异步提交](/characteristic-description/enterprise-level-features/19-transaction-async-submit.md) + + [索引创建并行控制](/characteristic-description/enterprise-level-features/23-index-creation-parallel-control.md) + + [动态分区裁剪](/characteristic-description/enterprise-level-features/21-dynamic-partition-pruning.md) + + [COPY导入优化](/characteristic-description/enterprise-level-features/20-copy-import-optimization.md) + + [SQL运行时状态观测](/characteristic-description/enterprise-level-features/22-sql-running-status-observation.md) + + [BRIN索引](/characteristic-description/enterprise-level-features/24-brin-index.md) + + [BLOOM索引](/characteristic-description/enterprise-level-features/25-bloom-index.md) + + [后台压缩](/characteristic-description/enterprise-level-features/26-backend-compression.md) + + 应用开发接口 + + [支持标准SQL](/characteristic-description/application-development-interfaces/1-standard-sql.md) + + [支持标准开发接口](/characteristic-description/application-development-interfaces/2-standard-development-interfaces.md) + + [PG接口兼容](/characteristic-description/application-development-interfaces/3-postgresql-api-compatibility.md) + + [支持PL/Java](/characteristic-description/application-development-interfaces/4-pl-java.md) + + [Oracle兼容性](/characteristic-description/application-development-interfaces/MogDB-Oracle-compatibility.md) + + [MySQL兼容性](/characteristic-description/application-development-interfaces/MogDB-MySQL-compatibility.md) + + AI能力 + + AI4DB:数据库自治运维 + + [数据库指标采集、预测与异常监控](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/1-database-metric-collection-forecast-and-exception-detection.md) + + [慢SQL根因分析](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/2-root-cause-analysis-for-slow-sql-statements.md) + + [索引推荐](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/3-index-recommendation.md) + + [参数调优与诊断](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/4-parameter-tuning-and-diagnosis.md) + + [慢SQL发现](/characteristic-description/ai-capabilities/ai4db-autonomous-database-o-m/5-slow-sql-statement-discovery.md) + + [DB4AI:数据库驱动AI](/characteristic-description/ai-capabilities/db4ai-database-driven-ai.md) + + AI in DB:数据库内AI功能 + + [Predictor:AI查询时间预测](/characteristic-description/ai-capabilities/ai-in-db/predictor-ai-query-time-forecasting.md) + + 工具链 + + [MySQL->MogDB迁移工具chameleon](/characteristic-description/tool-chain/mysql-to-mogdb-migration-tool-chameleon.md) + + [MogDB客户端工具DataStudio](/characteristic-description/tool-chain/mogdb-client-tool-datastudio.md) + + 中间件 + + [分布式数据库能力](/characteristic-description/middleware/distributed-database-capability.md) + + [使用kubernetes部署分布式数据库](/characteristic-description/middleware/deploying-a-distributed-database-using-kubernetes.md) ++ 安装指南 + + [容器化安装(beta版)](/installation-guide/docker-installation/docker-installation.md) + + 极简安装(630后发布) + + [安装准备](/installation-guide/simplified-installation-process/1-installation-preparation.md) + + [单节点安装](/installation-guide/simplified-installation-process/2-installation-on-a-single-node.md) + + [一主一备节点安装](/installation-guide/simplified-installation-process/3-installation-on-primary-standby-nodes.md) + + 标准安装(630后发布) + + [安装概述](/installation-guide/standard-installation/1-installation-overview.md) + + 安装准备 + + [环境要求](/installation-guide/standard-installation/2-environment-requirement.md) + + [修改操作系统配置](/installation-guide/standard-installation/3-modifying-os-configuration.md) + + [安装MogDB](/installation-guide/standard-installation/4-installing-mogdb.md) + + [安装验证](/installation-guide/standard-installation/5-verifying-installation.md) + + [推荐参数设置及新建测试库](/installation-guide/standard-installation/7-recommended-parameter-settings.md) + + [卸载MogDB](/installation-guide/standard-installation/6-uninstallation.md) + + [手动安装(630后发布)](/installation-guide/manual-installation.md) ++ 管理指南 + + 日常运维 + + [启停MogDB](/administrator-guide/routine-maintenance/0-starting-and-stopping-mogdb.md) + + [gsql客户端连接](/administrator-guide/routine-maintenance/using-the-gsql-client-for-connection.md) + + [日常维护检查项](/administrator-guide/routine-maintenance/1-routine-maintenance-check-items.md) + + [检查操作系统参数](/administrator-guide/routine-maintenance/2-checking-os-parameters.md) + + [检查MogDB健康状态](/administrator-guide/routine-maintenance/3-checking-mogdb-health-status.md) + + [检查数据库性能](/administrator-guide/routine-maintenance/4-checking-database-performance.md) + + [检查和清理日志](/administrator-guide/routine-maintenance/5-checking-and-deleting-logs.md) + + [检查时间一致性](/administrator-guide/routine-maintenance/6-checking-time-consistency.md) + + [检查应用连接数](/administrator-guide/routine-maintenance/7-checking-the-number-of-application-connections.md) + + [例行维护表](/administrator-guide/routine-maintenance/8-routinely-maintaining-tables.md) + + [例行重建索引](/administrator-guide/routine-maintenance/9-routinely-recreating-an-index.md) + + [数据安全维护建议](/administrator-guide/routine-maintenance/10-data-security-maintenance-suggestions.md) + + [慢SQL诊断](/administrator-guide/routine-maintenance/slow-sql-diagnosis.md) + + [日志参考](/administrator-guide/routine-maintenance/11-log-reference.md) + + [主备管理](/administrator-guide/primary-and-standby-management.md) + + MOT内存表管理 + + MOT介绍 + + [MOT简介](/administrator-guide/mot-engine/1-introducing-mot/1-mot-introduction.md) + + [MOT特性及价值](/administrator-guide/mot-engine/1-introducing-mot/2-mot-features-and-benefits.md) + + [MOT关键技术](/administrator-guide/mot-engine/1-introducing-mot/3-mot-key-technologies.md) + + [MOT应用场景](/administrator-guide/mot-engine/1-introducing-mot/4-mot-usage-scenarios.md) + + [MOT性能基准](/administrator-guide/mot-engine/1-introducing-mot/5-mot-performance-benchmarks.md) + + 使用MOT + + [MOT使用概述](/administrator-guide/mot-engine/2-using-mot/1-using-mot-overview.md) + + [MOT准备](/administrator-guide/mot-engine/2-using-mot/2-mot-preparation.md) + + [MOT部署](/administrator-guide/mot-engine/2-using-mot/3-mot-deployment.md) + + [MOT使用](/administrator-guide/mot-engine/2-using-mot/4-mot-usage.md) + + [MOT管理](/administrator-guide/mot-engine/2-using-mot/5-mot-administration.md) + + [MOT样例TPC-C基准](/administrator-guide/mot-engine/2-using-mot/6-mot-sample-tpcc-benchmark.md) + + MOT的概念 + + [MOT纵向扩容架构](/administrator-guide/mot-engine/3-concepts-of-mot/3-1.md) + + [MOT并发控制机制](/administrator-guide/mot-engine/3-concepts-of-mot/3-2.md) + + [扩展FDW与其他MogDB特性](/administrator-guide/mot-engine/3-concepts-of-mot/3-3.md) + + [NUMA-aware分配和亲和性](/administrator-guide/mot-engine/3-concepts-of-mot/3-4.md) + + [MOT索引](/administrator-guide/mot-engine/3-concepts-of-mot/3-5.md) + + [MOT持久性概念](/administrator-guide/mot-engine/3-concepts-of-mot/3-6.md) + + [MOT恢复概念](/administrator-guide/mot-engine/3-concepts-of-mot/3-7.md) + + [MOT查询原生编译(JIT)](/administrator-guide/mot-engine/3-concepts-of-mot/3-8.md) + + [对比:磁盘与MOT](/administrator-guide/mot-engine/3-concepts-of-mot/3-9.md) + + 附录 + + [参考文献](/administrator-guide/mot-engine/4-appendix/1-references.md) + + [术语表](/administrator-guide/mot-engine/4-appendix/2-glossary.md) + + [列存表管理](/administrator-guide/column-store-tables-management.md) + + 备份与恢复 + + [概述](/administrator-guide/br/1-1-br.md) + + [物理备份恢复](/administrator-guide/br/1-2-br.md) + + [逻辑备份恢复](/administrator-guide/br/1-3-br.md) + + [闪回恢复](/administrator-guide/br/1-4-br.md) + + 数据导出导入 + + 导入数据 + + [导入方式](/administrator-guide/importing-and-exporting-data/importing-data/1-import-modes.md) + + [通过INSERT语句直接写入数据](/administrator-guide/importing-and-exporting-data/importing-data/2-running-the-INSERT-statement-to-insert-data.md) + + [使用COPY FROM STDIN导入数据](/administrator-guide/importing-and-exporting-data/importing-data/3-running-the-COPY-FROM-STDIN-statement-to-import-data.md) + + [使用gsql元命令导入数据](/administrator-guide/importing-and-exporting-data/importing-data/4-using-a-gsql-meta-command-to-import-data.md) + + [使用gs_restore命令导入数据](/administrator-guide/importing-and-exporting-data/importing-data/5-using-gs_restore-to-import-data.md) + + [更新表中数据](/administrator-guide/importing-and-exporting-data/importing-data/6-updating-data-in-a-table.md) + + [深层复制](/administrator-guide/importing-and-exporting-data/importing-data/7-deep-copy.md) + + [分析表](/administrator-guide/importing-and-exporting-data/importing-data/8-ANALYZE-table.md) + + [对表执行VACUUM](/administrator-guide/importing-and-exporting-data/importing-data/9-doing-VACUUM-to-a-table.md) + + [管理并发写入操作](/administrator-guide/importing-and-exporting-data/importing-data/10-managing-concurrent-write-operations.md) + + 导出数据 + + [使用gs_dump和gs_dumpall命令导出数据概述](/administrator-guide/importing-and-exporting-data/exporting-data/1-using-gs_dump-and-gs_dumpall-to-export-data-overview.md) + + [导出单个数据库](/administrator-guide/importing-and-exporting-data/exporting-data/2-exporting-a-single-database.md) + + [导出所有数据库](/administrator-guide/importing-and-exporting-data/exporting-data/3-exporting-all-databases.md) + + [无权限角色导出数据](/administrator-guide/importing-and-exporting-data/exporting-data/4-data-export-by-a-user-without-required-permissions.md) + + [升级指南](/administrator-guide/upgrade-guide.md) ++ AI特性指南 + + [AI特性概述](/AI-features/1-AI-features-overview.md) + + [AI4DB:数据库自治运维](/AI-features/ai4db/ai4db-autonomous-database-o&m.md) + + [DBMind模式说明](/AI-features/ai4db/dbmind-mode/dbmind-mode.md) + + [service子命令](/AI-features/ai4db/dbmind-mode/1-service.md) + + [component子命令](/AI-features/ai4db/dbmind-mode/2-component.md) + + [set子命令](/AI-features/ai4db/dbmind-mode/3-set.md) + + [DBMind的支持组件](/AI-features/ai4db/components-that-support-dbmind/components-that-support-dbmind.md) + + Prometheus Exporter组件 + + [概述](/AI-features/ai4db/components-that-support-dbmind/prometheus-exporter/prometheus-exporter-overview.md) + + [环境部署](/AI-features/ai4db/components-that-support-dbmind/prometheus-exporter/prometheus-exporter-environment-deployment.md) + + [使用指导](/AI-features/ai4db/components-that-support-dbmind/prometheus-exporter/prometheus-exporter-usage-guide.md) + + [获取帮助](/AI-features/ai4db/components-that-support-dbmind/prometheus-exporter/prometheus-exporter-obtaining-help-information.md) + + [命令参考](/AI-features/ai4db/components-that-support-dbmind/prometheus-exporter/prometheus-exporter-command-reference.md) + + [常见问题处理](/AI-features/ai4db/components-that-support-dbmind/prometheus-exporter/prometheus-exporter-troubleshooting.md) + + DBMind的AI子功能 + + X-Tuner:参数调优与诊断 + + [概述](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/1-x-tuner-parameter-optimization-and-diagnosis/1-1-x-tuner-overview.md) + + [使用准备](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/1-x-tuner-parameter-optimization-and-diagnosis/1-2-preparations.md) + + [使用示例](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/1-x-tuner-parameter-optimization-and-diagnosis/1-3-examples.md) + + [获取帮助](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/1-x-tuner-parameter-optimization-and-diagnosis/1-4-obtaining-help-information.md) + + [命令参考](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/1-x-tuner-parameter-optimization-and-diagnosis/1-5-command-reference.md) + + [常见问题处理](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/1-x-tuner-parameter-optimization-and-diagnosis/1-6-Troubleshooting.md) + + Index-advisor:索引推荐 + + [单query索引推荐](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/2-index-advisor-index-recommendation/2-1-single-query-index-recommendation.md) + + [虚拟索引](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/2-index-advisor-index-recommendation/2-2-virtual-index.md) + + [workload级别索引推荐](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/2-index-advisor-index-recommendation/2-3-workload-level-index-recommendation.md) + + AI4DB: 慢SQL根因分析 + + [概述](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/3-ai4db-root-cause-analysis-for-slow-sql-statements/3-1-overview.md) + + [环境部署](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/3-ai4db-root-cause-analysis-for-slow-sql-statements/3-2-environment-deployment.md) + + [使用指导](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/3-ai4db-root-cause-analysis-for-slow-sql-statements/3-3-usage-guide.md) + + [获取帮助](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/3-ai4db-root-cause-analysis-for-slow-sql-statements/3-4-obtaining-help-information.md) + + [命令参考](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/3-ai4db-root-cause-analysis-for-slow-sql-statements/3-5-command-reference.md) + + [常见问题处理](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/3-ai4db-root-cause-analysis-for-slow-sql-statements/3-6-troubleshooting.md) + + AI4DB:趋势预测 + + [概述](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/4-ai4db-trend-prediction/4-1-overview.md) + + [环境部署](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/4-ai4db-trend-prediction/4-2-environment-deployment.md) + + [使用指导](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/4-ai4db-trend-prediction/4-3-usage-guide.md) + + [获取帮助](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/4-ai4db-trend-prediction/4-4-obtaining-help-information.md) + + [命令参考](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/4-ai4db-trend-prediction/4-5-command-reference.md) + + [常见问题处理](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/4-ai4db-trend-prediction/4-6-troubleshooting.md) + + SQLdiag:慢SQL发现 + + [概述](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/5-sqldiag-slow-sql-discovery/5-1-overview.md) + + [使用指导](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/5-sqldiag-slow-sql-discovery/5-2-usage-guide.md) + + [获取帮助](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/5-sqldiag-slow-sql-discovery/5-3-obtaining-help-information.md) + + [命令参考](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/5-sqldiag-slow-sql-discovery/5-4-command-reference.md) + + [常见问题处理](/AI-features/ai4db/ai-sub-functions-of-the-dbmind/5-sqldiag-slow-sql-discovery/5-5-troubleshooting.md) + + [DB4AI:数据库驱动AI](/AI-features/db4ai/db4ai.md) + + [原生DB4AI引擎](/AI-features/db4ai/native-db4ai-engine.md) + + [全流程AI](/AI-features/db4ai/full-process-ai/full-process-ai.md) + + [PLPython Fenced模式](/AI-features/db4ai/full-process-ai/plpython-fenced-mode.md) + + [DB4AI-Snapshots数据版本管理](/AI-features/db4ai/full-process-ai/db4ai-snapshots-for-data-version-management.md) + + AI in DB:数据库内AI功能 + + 智能Explain:SQL语句查询时间预测 + + [概述](/AI-features/ai-in-db/intelligence-explain/intelligence-explain-overview.md) + + [环境部署](/AI-features/ai-in-db/intelligence-explain/intelligence-explain-environment-deployment.md) + + [使用指导](/AI-features/ai-in-db/intelligence-explain/intelligence-explain-user-guide.md) + + [最佳实践](/AI-features/ai-in-db/intelligence-explain/intelligence-explain-best-practices.md) + + [常见问题处理](/AI-features/ai-in-db/intelligence-explain/intelligence-explain-faqs.md) ++ 安全指南 + + 数据库安全管理 + + [客户端接入认证](/security-guide/security/1-client-access-authentication.md) + + [管理用户及权限](/security-guide/security/2-managing-users-and-their-permissions.md) + + [设置数据库审计](/security-guide/security/3-configuring-database-audit.md) + + [设置密态等值查询](/security-guide/security/4-setting-encrypted-equality-query.md) + + [设置账本数据库](/security-guide/security/5-setting-a-ledger-database.md) + + [设置透明数据加密(TDE)](/security-guide/security/6-transparent-data-encryption.md) ++ 开发者指南 + + 应用程序开发教程 + + [开发规范](/developer-guide/dev/1-development-specifications.md) + + 基于JDBC开发 + + [概述](/developer-guide/dev/2-development-based-on-jdbc/1-development-based-on-jdbc-overview.md) + + [JDBC包、驱动类和环境类](/developer-guide/dev/2-development-based-on-jdbc/2-jdbc-package-driver-class-and-environment-class.md) + + [开发流程](/developer-guide/dev/2-development-based-on-jdbc/3-development-process.md) + + [加载驱动](/developer-guide/dev/2-development-based-on-jdbc/4-loading-the-driver.md) + + [连接数据库](/developer-guide/dev/2-development-based-on-jdbc/5-connecting-to-a-database.md) + + [连接数据库(以SSL方式)](/developer-guide/dev/2-development-based-on-jdbc/6-connecting-to-a-database-using-ssl.md) + + [执行SQL语句](/developer-guide/dev/2-development-based-on-jdbc/7-running-sql-statements.md) + + [处理结果集](/developer-guide/dev/2-development-based-on-jdbc/8-processing-data-in-a-result-set.md) + + [关闭连接](/developer-guide/dev/2-development-based-on-jdbc/9-closing-a-connection.md) + + [日志管理](/developer-guide/dev/2-development-based-on-jdbc/8.1-log-management.md) + + [示例:常用操作](/developer-guide/dev/2-development-based-on-jdbc/10-example-common-operations.md) + + [示例:重新执行应用SQL](/developer-guide/dev/2-development-based-on-jdbc/11-example-retrying-sql-queries-for-applications.md) + + [示例:通过本地文件导入导出数据](/developer-guide/dev/2-development-based-on-jdbc/12-example-importing-and-exporting-data-through-local-files.md) + + [示例:从MY向MogDB进行数据迁移](/developer-guide/dev/2-development-based-on-jdbc/13-example-2-migrating-data-from-a-my-database-to-mogdb.md) + + [示例:逻辑复制代码示例](/developer-guide/dev/2-development-based-on-jdbc/14-example-logic-replication-code.md) + + [示例:不同场景下连接数据库参数配置](/developer-guide/dev/2-development-based-on-jdbc/14.1-example-parameters-for-connecting-to-the-database-in-different-scenarios.md) + + JDBC接口参考 + + [java.sql.Connection](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/1-java-sql-Connection.md) + + [java.sql.CallableStatement](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/2-java-sql-CallableStatement.md) + + [java.sql.DatabaseMetaData](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/3-java-sql-DatabaseMetaData.md) + + [java.sql.Driver](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/4-java-sql-Driver.md) + + [java.sql.PreparedStatement](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/5-java-sql-PreparedStatement.md) + + [java.sql.ResultSet](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/6-java-sql-ResultSet.md) + + [java.sql.ResultSetMetaData](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/7-java-sql-ResultSetMetaData.md) + + [java.sql.Statement](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/8-java-sql-Statement.md) + + [javax.sql.ConnectionPoolDataSource](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/9-javax-sql-ConnectionPoolDataSource.md) + + [javax.sql.DataSource](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/10-javax-sql-DataSource.md) + + [javax.sql.PooledConnection](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/11-javax-sql-PooledConnection.md) + + [javax.naming.Context](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/12-javax-naming-Context.md) + + [javax.naming.spi.InitialContextFactory](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/13-javax-naming-spi-InitialContextFactory.md) + + [CopyManager](/developer-guide/dev/2-development-based-on-jdbc/15-JDBC/14-CopyManager.md) + + 基于ODBC开发 + + [概述](/developer-guide/dev/3-development-based-on-odbc/1-development-based-on-odbc-overview.md) + + [ODBC包及依赖的库和头文件](/developer-guide/dev/3-development-based-on-odbc/2-odbc-packages-dependent-libraries-and-header-files.md) + + [Linux下配置数据源](/developer-guide/dev/3-development-based-on-odbc/3-configuring-a-data-source-in-the-linux-os.md) + + [开发流程](/developer-guide/dev/3-development-based-on-odbc/4-development-process.md) + + [示例:常用功能和批量绑定](/developer-guide/dev/3-development-based-on-odbc/5-example-common-functions-and-batch-binding.md) + + [典型应用场景配置](/developer-guide/dev/3-development-based-on-odbc/5.1-typical-application-scenarios-and-configurations.md) + + ODBC接口参考 + + [说明](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-0-odbc-overview.md) + + [SQLAllocEnv](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-1-SQLAllocEnv.md) + + [SQLAllocConnect](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-2-SQLAllocConnect.md) + + [SQLAllocHandle](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-3-SQLAllocHandle.md) + + [SQLAllocStmt](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-4-SQLAllocStmt.md) + + [SQLBindCol](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-5-SQLBindCol.md) + + [SQLBindParameter](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-6-SQLBindParameter.md) + + [SQLColAttribute](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-7-SQLColAttribute.md) + + [SQLConnect](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-8-SQLConnect.md) + + [SQLDisconnect](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-9-SQLDisconnect.md) + + [SQLExecDirect](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-10-SQLExecDirect.md) + + [SQLExecute](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-11-SQLExecute.md) + + [SQLFetch](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-12-SQLFetch.md) + + [SQLFreeStmt](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-13-SQLFreeStmt.md) + + [SQLFreeConnect](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-14-SQLFreeConnect.md) + + [SQLFreeHandle](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-15-SQLFreeHandle.md) + + [SQLFreeEnv](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-16-SQLFreeEnv.md) + + [SQLPrepare](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-17-SQLPrepare.md) + + [SQLGetData](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-18-SQLGetData.md) + + [SQLGetDiagRec](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-19-SQLGetDiagRec.md) + + [SQLSetConnectAttr](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-20-SQLSetConnectAttr.md) + + [SQLSetEnvAttr](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-21-SQLSetEnvAttr.md) + + [SQLSetStmtAttr](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-22-SQLSetStmtAttr.md) + + [示例](/developer-guide/dev/3-development-based-on-odbc/6-ODBC/2-23-Examples.md) + + 基于libpq开发 + + [概述](/developer-guide/dev/4-development-based-on-libpq/1-development-based-on-libpq.md) + + [libpq使用依赖的头文件](/developer-guide/dev/4-development-based-on-libpq/dependent-header-files-of-libpq.md) + + [开发流程](/developer-guide/dev/4-development-based-on-libpq/development-process.md) + + [示例](/developer-guide/dev/4-development-based-on-libpq/libpq-example.md) + + [链接参数](/developer-guide/dev/4-development-based-on-libpq/link-parameters.md) + + libpq接口参考 + + 数据库连接控制函数 + + [说明](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/1-database-connection-control-functions-overview.md) + + [PQconnectdbParams](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/2-PQconnectdbParams.md) + + [PQconnectdb](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/3-PQconnectdb.md) + + [PQconninfoParse](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/4-PQconninfoParse.md) + + [PQconnectStart](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/5-PQconnectStart.md) + + [PQerrorMessage](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/6-PQerrorMessage.md) + + [PQsetdbLogin](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/7-PQsetdbLogin.md) + + [PQfinish](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/8-PQfinish.md) + + [PQreset](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/9-PQreset.md) + + [PQstatus](/developer-guide/dev/4-development-based-on-libpq/2-libpq/1-database-connection-control-functions/10-PQstatus.md) + + 数据库执行语句函数 + + [PQclear](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/1-PQclear.md) + + [PQexec](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/2-PQexec.md) + + [PQexecParams](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/3-PQexecParams.md) + + [PQexecParamsBatch](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/4-PQexecParamsBatch.md) + + [PQexecPrepared](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/5-PQexecPrepared.md) + + [PQexecPreparedBatch](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/6-PQexecPreparedBatch.md) + + [PQfname](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/7-PQfname.md) + + [PQgetvalue](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/8-PQgetvalue.md) + + [PQnfields](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/9-PQnfields.md) + + [PQntuples](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/10-PQntuples.md) + + [PQprepare](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/11-PQprepare.md) + + [PQresultStatus](/developer-guide/dev/4-development-based-on-libpq/2-libpq/2-database-statement-execution-functions/12-PQresultStatus.md) + + 异步命令处理 + + [说明](/developer-guide/dev/4-development-based-on-libpq/2-libpq/3-functions-for-asynchronous-command-processing/1-functions-for-asynchronous-command-processing-overview.md) + + [PQsendQuery](/developer-guide/dev/4-development-based-on-libpq/2-libpq/3-functions-for-asynchronous-command-processing/2-PQsendQuery.md) + + [PQsendQueryParams](/developer-guide/dev/4-development-based-on-libpq/2-libpq/3-functions-for-asynchronous-command-processing/3-PQsendQueryParams.md) + + [PQsendPrepare](/developer-guide/dev/4-development-based-on-libpq/2-libpq/3-functions-for-asynchronous-command-processing/4-PQsendPrepare.md) + + [PQsendQueryPrepared](/developer-guide/dev/4-development-based-on-libpq/2-libpq/3-functions-for-asynchronous-command-processing/5-PQsendQueryPrepared.md) + + [PQflush](/developer-guide/dev/4-development-based-on-libpq/2-libpq/3-functions-for-asynchronous-command-processing/6-PQflush.md) + + 取消正在处理的查询 + + [PQgetCancel](/developer-guide/dev/4-development-based-on-libpq/2-libpq/4-functions-for-canceling-queries-in-progress/1-PQgetCancel.md) + + [PQfreeCancel](/developer-guide/dev/4-development-based-on-libpq/2-libpq/4-functions-for-canceling-queries-in-progress/2-PQfreeCancel.md) + + [PQcancel](/developer-guide/dev/4-development-based-on-libpq/2-libpq/4-functions-for-canceling-queries-in-progress/3-PQcancel.md) + + 基于Psycopg开发 + + [基于Psycopg开发](/developer-guide/dev/4.1-psycopg-based-development/1-psycopg-based-development.md) + + [Psycopg包](/developer-guide/dev/4.1-psycopg-based-development/2-psycopg-package.md) + + [开发流程](/developer-guide/dev/4.1-psycopg-based-development/3.1-development-process.md) + + [加载驱动](/developer-guide/dev/4.1-psycopg-based-development/4-loading-a-driver.md) + + [连接数据库](/developer-guide/dev/4.1-psycopg-based-development/5.1-connecting-to-a-database.md) + + [执行SQL语句](/developer-guide/dev/4.1-psycopg-based-development/6-executing-sql-statements.md) + + [处理结果集](/developer-guide/dev/4.1-psycopg-based-development/7-processing-the-result-set.md) + + [关闭连接](/developer-guide/dev/4.1-psycopg-based-development/8-closing-the-connection.md) + + [连接数据库(SSL方式)](/developer-guide/dev/4.1-psycopg-based-development/9-connecting-to-the-database-using-ssl.md) + + [示例:常用操作](/developer-guide/dev/4.1-psycopg-based-development/10.1-example-common-operations.md) + + Psycopg接口参考 + + [psycopg2.connect()](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/1-psycopg2-connect.md) + + [connection.cursor()](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/2-connection-cursor.md) + + [cursor.execute(query,vars_list)](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/3-cursor-execute-query-vars-list.md) + + [curosr.executemany(query,vars_list)](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/4-curosr-executemany-query-vars-list.md) + + [connection.commit()](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/5-connection-commit.md) + + [connection.rollback()](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/6-connection-rollback.md) + + [cursor.fetchone()](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/7-cursor-fetchone.md) + + [cursor.fetchall()](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/8-cursor-fetchall.md) + + [cursor.close()](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/9-cursor-close.md) + + [connection.close()](/developer-guide/dev/4.1-psycopg-based-development/11-psycopg-api-reference/10-connection-close.md) + + [调试](/developer-guide/dev/5-commissioning.md) + + [存储过程](/developer-guide/1-1-stored-procedure.md) + + [用户自定义函数](/developer-guide/user-defined-functions.md) + + PL/pgSQL-SQL过程语言 + + [PL/pgSQL语言函数介绍](/developer-guide/plpgsql/1-1-plpgsql-overview.md) + + [数据类型](/developer-guide/plpgsql/1-2-data-types.md) + + [数据类型转换](/developer-guide/plpgsql/1-3-data-type-conversion.md) + + [数组和record](/developer-guide/plpgsql/1-4-arrays-and-records.md) + + [声明语法](/developer-guide/plpgsql/1-5-declare-syntax.md) + + [基本语句](/developer-guide/plpgsql/1-6-basic-statements.md) + + [动态语句](/developer-guide/plpgsql/1-7-dynamic-statements.md) + + [控制语句](/developer-guide/plpgsql/1-8-control-statements.md) + + [事务管理](/developer-guide/plpgsql/1-9-transaction-management.md) + + [其他语句](/developer-guide/plpgsql/1-10-other-statements.md) + + [游标](/developer-guide/plpgsql/1-11-cursors.md) + + 高级包 + + 基础接口 + + [PKG_SERVICE](/developer-guide/plpgsql/advanced-packages/basic-interfaces/PKG_SERVICE.md) + + [PKG_UTIL](/developer-guide/plpgsql/advanced-packages/basic-interfaces/PKG_UTIL.md) + + [Retry管理](/developer-guide/plpgsql/1-12-retry-management.md) + + [调试](/developer-guide/plpgsql/1-13-debugging.md) + + [package](/developer-guide/plpgsql/1-14-package.md) + + 定时任务 + + [PKG_SERVICE接口](/developer-guide/scheduled-jobs/pkg-service.md) + + 自治事务 + + [介绍](/developer-guide/autonomous-transaction/1-introduction-to-autonomous-transaction.md) + + [存储过程支持自治事务](/developer-guide/autonomous-transaction/3-stored-procedure-supporting-autonomous-transaction.md) + + [匿名块支持自治事务](/developer-guide/autonomous-transaction/anonymous-block-supporting-autonomous-transaction.md) + + [用户自定义函数支持自治事务](/developer-guide/autonomous-transaction/2-function-supporting-autonomous-transaction.md) + + [规格约束](/developer-guide/autonomous-transaction/4-restrictions.md) + + 逻辑复制 + + 逻辑解码 + + [逻辑解码概述](/developer-guide/logical-replication/logical-decoding/1-logical-decoding.md) + + [使用SQL函数接口进行逻辑解码](/developer-guide/logical-replication/logical-decoding/2-logical-decoding-by-sql-function-interfaces.md) + + [发布订阅](/developer-guide/logical-replication/publication-subscription/publication-subscription.md) + + [发布](/developer-guide/logical-replication/publication-subscription/publications.md) + + [订阅](/developer-guide/logical-replication/publication-subscription/subscriptions.md) + + [冲突处理](/developer-guide/logical-replication/publication-subscription/conflicts.md) + + [限制](/developer-guide/logical-replication/publication-subscription/restrictions.md) + + [架构](/developer-guide/logical-replication/publication-subscription/architecture.md) + + [监控](/developer-guide/logical-replication/publication-subscription/monitoring.md) + + [安全性](/developer-guide/logical-replication/publication-subscription/security.md) + + [配置设置](/developer-guide/logical-replication/publication-subscription/configuration-settings.md) + + [快速设置](/developer-guide/logical-replication/publication-subscription/quick-setup.md) + + PostGIS Extension + + [PostGIS概述](/developer-guide/postgis-extension/postgis-overview.md) + + [PostGIS使用](/developer-guide/postgis-extension/using-postgis.md) + + [PostGIS支持和限制](/developer-guide/postgis-extension/postgis-support-and-constraints.md) + + Foreign Data Wrapper + + [介绍](/developer-guide/foreign-data-wrapper/fdw-introduction.md) + + [oracle_fdw](/developer-guide/foreign-data-wrapper/1-oracle_fdw.md) + + [mysql_fdw](/developer-guide/foreign-data-wrapper/2-mysql_fdw.md) + + [postgres_fdw](/developer-guide/foreign-data-wrapper/3-postgres_fdw.md) + + [file_fdw](/developer-guide/foreign-data-wrapper/file_fdw.md) + + [dblink](/developer-guide/foreign-data-wrapper/dblink.md) + + 物化视图 + + [物化视图概述](/developer-guide/materialized-view/1-materialized-view-overview.md) + + 全量物化视图 + + [概述](/developer-guide/materialized-view/2-full-materialized-view/1-full-materialized-view-overview.md) + + [使用](/developer-guide/materialized-view/2-full-materialized-view/2-full-materialized-view-usage.md) + + [支持和约束](/developer-guide/materialized-view/2-full-materialized-view/3-full-materialized-view-support-and-constraints.md) + + 增量物化视图 + + [概述](/developer-guide/materialized-view/3-incremental-materialized-view/1-incremental-materialized-view-overview.md) + + [使用](/developer-guide/materialized-view/3-incremental-materialized-view/2-incremental-materialized-view-usage.md) + + [支持和约束](/developer-guide/materialized-view/3-incremental-materialized-view/3-incremental-materialized-view-support-and-constraints.md) + + 资源负载管理 + + [资源负载管理概述](/developer-guide/resource-load-management/resource-load-management-overview.md) + + 资源管理准备 + + [资源规划](/developer-guide/resource-load-management/resource-management-preparation/planning-resources.md) + + [启动资源负载管理功能](/developer-guide/resource-load-management/resource-management-preparation/enabling-resource-load-management.md) + + [设置控制组](/developer-guide/resource-load-management/resource-management-preparation/setting-a-cgroup.md) + + [创建资源池](/developer-guide/resource-load-management/resource-management-preparation/creating-a-resource-pool.md) + + 分区管理 + + 分区裁剪 + + [分区裁剪的好处](/developer-guide/partition-management/partition-pruning/benefits-of-partition-pruning.md) + + [可用于分区裁剪的信息](/developer-guide/partition-management/partition-pruning/information-that-can-be-used-for-partition-pruning.md) + + [如何确定是否使用了分区裁剪](/developer-guide/partition-management/partition-pruning/how-to-identify-whether-partition-pruning-has-been-used.md) + + [静态分区裁剪](/developer-guide/partition-management/partition-pruning/static-partition-pruning.md) + + [动态分区裁剪](/developer-guide/partition-management/partition-pruning/dynamic-partition-pruning.md) + + 选择分区策略的建议 + + [何时使用范围分区](/developer-guide/partition-management/recommendations-for-choosing-a-partitioning-strategy/when-to-use-range-partitioning.md) + + [何时使用列表分区](/developer-guide/partition-management/recommendations-for-choosing-a-partitioning-strategy/when-to-use-list-partitioning.md) + + [何时使用哈希分区](/developer-guide/partition-management/recommendations-for-choosing-a-partitioning-strategy/when-to-use-hash-partitioning.md) ++ 性能优化指南 + + 系统优化指南 + + [操作系统参数调优](/performance-tuning/1-system/1-optimizing-os-parameters.md) + + [数据库系统参数调优](/performance-tuning/1-system/2-optimizing-database-parameters.md) + + [配置SMP](/performance-tuning/1-system/4-configuring-smp.md) + + [配置LLVM](/performance-tuning/1-system/3-configuring-llvm.md) + + SQL优化指南 + + [Query执行流程](/performance-tuning/2-sql/1-query-execution-process.md) + + [SQL执行计划介绍](/performance-tuning/2-sql/2-introduction-to-the-sql-execution-plan.md) + + [调优流程](/performance-tuning/2-sql/3-tuning-process.md) + + [更新统计信息](/performance-tuning/2-sql/4-updating-statistics.md) + + [审视和修改表定义](/performance-tuning/2-sql/5-reviewing-and-modifying-a-table-definition.md) + + [典型SQL调优点](/performance-tuning/2-sql/6-typical-sql-optimization-methods.md) + + [SQL语句改写规则](/performance-tuning/2-sql/7-experience-in-rewriting-sql-statements.md) + + [SQL调优关键参数调整](/performance-tuning/2-sql/8-resetting-key-parameters-during-sql-tuning.md) + + [使用Plan Hint进行调优](/performance-tuning/2-sql/9-hint-based-tuning.md) + + WDR解读指南 + + [WDR Snapshot Schema](/performance-tuning/3-wdr/wdr-snapshot-schema.md) + + [查看WDR报告](/performance-tuning/3-wdr/wdr-report.md) + + [使用向量化执行引擎进行调优](/performance-tuning/tuning-with-vector-engine.md) + + [TPCC性能优化指南](/performance-tuning/TPCC-performance-tuning-guide.md) ++ 参考指南 + + 系统表及系统视图 + + [系统表和系统视图概述](/reference-guide/system-catalogs-and-system-views/overview-of-system-catalogs-and-system-views.md) + + 系统表 + + [GS_ASP](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_ASP.md) + + [GS_AUDITING_POLICY](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_AUDITING_POLICY.md) + + [GS_AUDITING_POLICY_ACCESS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_AUDITING_POLICY_ACCESS.md) + + [GS_AUDITING_POLICY_FILTERS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_AUDITING_POLICY_FILTERS.md) + + [GS_AUDITING_POLICY_PRIVILEGES](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_AUDITING_POLICY_PRIVILEGES.md) + + [GS_CLIENT_GLOBAL_KEYS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_CLIENT_GLOBAL_KEYS.md) + + [GS_CLIENT_GLOBAL_KEYS_ARGS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_CLIENT_GLOBAL_KEYS_ARGS.md) + + [GS_COLUMN_KEYS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_COLUMN_KEYS.md) + + [GS_COLUMN_KEYS_ARGS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_COLUMN_KEYS_ARGS.md) + + [GS_DB_PRIVILEGE](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_DB_PRIVILEGE.md) + + [GS_ENCRYPTED_COLUMNS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_ENCRYPTED_COLUMNS.md) + + [GS_ENCRYPTED_PROC](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_ENCRYPTED_PROC.md) + + [GS_GLOBAL_CHAIN](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_GLOBAL_CHAIN.md) + + [GS_GLOBAL_CONFIG](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_GLOBAL_CONFIG.md) + + [GS_MASKING_POLICY](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_MASKING_POLICY.md) + + [GS_MASKING_POLICY_ACTIONS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_MASKING_POLICY_ACTIONS.md) + + [GS_MASKING_POLICY_FILTERS](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_MASKING_POLICY_FILTERS.md) + + [GS_MATVIEW](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_MATVIEW.md) + + [GS_MATVIEW_DEPENDENCY](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_MATVIEW_DEPENDENCY.md) + + [GS_MODEL_WAREHOUSE](./reference-guide/system-catalogs-and-system-views/system-catalogs/.md) + + [GS_OPT_MODEL](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_OPT_MODEL.md) + + [GS_PACKAGE](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_PACKAGE.md) + + [GS_POLICY_LABEL](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_POLICY_LABEL.md) + + [GS_RECYCLEBIN](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_RECYCLEBIN.md) + + [GS_TXN_SNAPSHOT](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_TXN_SNAPSHOT.md) + + [GS_UID](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_UID.md) + + [GS_WLM_EC_OPERATOR_INFO](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_WLM_EC_OPERATOR_INFO.md) + + [GS_WLM_INSTANCE_HISTORY](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_WLM_INSTANCE_HISTORY.md) + + [GS_WLM_OPERATOR_INFO](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_WLM_OPERATOR_INFO.md) + + [GS_WLM_PLAN_ENCODING_TABLE](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_WLM_PLAN_ENCODING_TABLE.md) + + [GS_WLM_PLAN_OPERATOR_INFO](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_WLM_PLAN_OPERATOR_INFO.md) + + [GS_WLM_SESSION_QUERY_INFO_ALL](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_WLM_SESSION_QUERY_INFO_ALL.md) + + [GS_WLM_USER_RESOURCE_HISTORY](./reference-guide/system-catalogs-and-system-views/system-catalogs/GS_WLM_USER_RESOURCE_HISTORY.md) + + [PG_AGGREGATE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_AGGREGATE.md) + + [PG_AM](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_AM.md) + + [PG_AMOP](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_AMOP.md) + + [PG_AMPROC](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_AMPROC.md) + + [PG_APP_WORKLOADGROUP_MAPPING](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_APP_WORKLOADGROUP_MAPPING.md) + + [PG_ATTRDEF](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_ATTRDEF.md) + + [PG_ATTRIBUTE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_ATTRIBUTE.md) + + [PG_AUTH_HISTORY](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_AUTH_HISTORY.md) + + [PG_AUTH_MEMBERS](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_AUTH_MEMBERS.md) + + [PG_AUTHID](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_AUTHID.md) + + [PG_CAST](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_CAST.md) + + [PG_CLASS](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_CLASS.md) + + [PG_COLLATION](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_COLLATION.md) + + [PG_CONSTRAINT](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_CONSTRAINT.md) + + [PG_CONVERSION](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_CONVERSION.md) + + [PG_DATABASE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_DATABASE.md) + + [PG_DB_ROLE_SETTING](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_DB_ROLE_SETTING.md) + + [PG_DEFAULT_ACL](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_DEFAULT_ACL.md) + + [PG_DEPEND](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_DEPEND.md) + + [PG_DESCRIPTION](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_DESCRIPTION.md) + + [PG_DIRECTORY](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_DIRECTORY.md) + + [PG_ENUM](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_ENUM.md) + + [PG_EXTENSION](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_EXTENSION.md) + + [PG_EXTENSION_DATA_SOURCE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_EXTENSION_DATA_SOURCE.md) + + [PG_FOREIGN_DATA_WRAPPER](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_FOREIGN_DATA_WRAPPER.md) + + [PG_FOREIGN_SERVER](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_FOREIGN_SERVER.md) + + [PG_FOREIGN_TABLE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_FOREIGN_TABLE.md) + + [PG_HASHBUCKET](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_HASHBUCKET.md) + + [PG_INDEX](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_INDEX.md) + + [PG_INHERITS](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_INHERITS.md) + + [PG_JOB](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_JOB.md) + + [PG_JOB_PROC](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_JOB_PROC.md) + + [PG_LANGUAGE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_LANGUAGE.md) + + [PG_LARGEOBJECT](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_LARGEOBJECT.md) + + [PG_LARGEOBJECT_METADATA](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_LARGEOBJECT_METADATA.md) + + [PG_NAMESPACE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_NAMESPACE.md) + + [PG_OBJECT](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_OBJECT.md) + + [PG_OPCLASS](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_OPCLASS.md) + + [PG_OPERATOR](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_OPERATOR.md) + + [PG_OPFAMILY](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_OPFAMILY.md) + + [PG_PARTITION](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_PARTITION.md) + + [PG_PLTEMPLATE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_PLTEMPLATE.md) + + [PG_PROC](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_PROC.md) + + [PG_PUBLICATION](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_PUBLICATION.md) + + [PG_PUBLICATION_REL](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_PUBLICATION_REL.md) + + [PG_RANGE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_RANGE.md) + + [PG_REPLICATION_ORIGIN](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_REPLICATION_ORIGIN.md) + + [PG_RESOURCE_POOL](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_RESOURCE_POOL.md) + + [PG_REWRITE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_REWRITE.md) + + [PG_RLSPOLICY](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_RLSPOLICY.md) + + [PG_SECLABEL](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_SECLABEL.md) + + [PG_SHDEPEND](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_SHDEPEND.md) + + [PG_SHDESCRIPTION](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_SHDESCRIPTION.md) + + [PG_SHSECLABEL](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_SHSECLABEL.md) + + [PG_STATISTIC](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_STATISTIC.md) + + [PG_STATISTIC_EXT](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_STATISTIC_EXT.md) + + [PG_SUBSCRIPTION](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_SUBSCRIPTION.md) + + [PG_SYNONYM](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_SYNONYM.md) + + [PG_TABLESPACE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_TABLESPACE.md) + + [PG_TRIGGER](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_TRIGGER.md) + + [PG_TS_CONFIG](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_TS_CONFIG.md) + + [PG_TS_CONFIG_MAP](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_TS_CONFIG_MAP.md) + + [PG_TS_DICT](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_TS_DICT.md) + + [PG_TS_PARSER](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_TS_PARSER.md) + + [PG_TS_TEMPLATE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_TS_TEMPLATE.md) + + [PG_TYPE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_TYPE.md) + + [PG_USER_MAPPING](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_USER_MAPPING.md) + + [PG_USER_STATUS](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_USER_STATUS.md) + + [PG_WORKLOAD_GROUP](./reference-guide/system-catalogs-and-system-views/system-catalogs/PG_WORKLOAD_GROUP.md) + + [PGXC_CLASS](./reference-guide/system-catalogs-and-system-views/system-catalogs/PGXC_CLASS.md) + + [PGXC_GROUP](./reference-guide/system-catalogs-and-system-views/system-catalogs/PGXC_GROUP.md) + + [PGXC_NODE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PGXC_NODE.md) + + [PGXC_SLICE](./reference-guide/system-catalogs-and-system-views/system-catalogs/PGXC_SLICE.md) + + [PLAN_TABLE_DATA](./reference-guide/system-catalogs-and-system-views/system-catalogs/PLAN_TABLE_DATA.md) + + [STATEMENT_HISTORY](./reference-guide/system-catalogs-and-system-views/system-catalogs/STATEMENT_HISTORY.md) + + 系统视图 + + [DV_SESSION_LONGOPS](./reference-guide/system-catalogs-and-system-views/system-views/DV_SESSION_LONGOPS.md) + + [DV_SESSIONS](./reference-guide/system-catalogs-and-system-views/system-views/DV_SESSIONS.md) + + [GET_GLOBAL_PREPARED_XACTS(废弃)](./reference-guide/system-catalogs-and-system-views/system-views/GET_GLOBAL_PREPARED_XACTS.md) + + [GS_AUDITING](./reference-guide/system-catalogs-and-system-views/system-views/GS_AUDITING.md) + + [GS_AUDITING_ACCESS](./reference-guide/system-catalogs-and-system-views/system-views/GS_AUDITING_ACCESS.md) + + [GS_AUDITING_PRIVILEGE](./reference-guide/system-catalogs-and-system-views/system-views/GS_AUDITING_PRIVILEGE.md) + + [GS_ASYNC_SUBMIT_SESSIONS_STATUS](./reference-guide/system-catalogs-and-system-views/system-views/GS_ASYNC_SUBMIT_SESSIONS_STATUS.md) + + [GS_CLUSTER_RESOURCE_INFO](./reference-guide/system-catalogs-and-system-views/system-views/GS_CLUSTER_RESOURCE_INFO.md) + + [GS_DB_PRIVILEGES](./reference-guide/system-catalogs-and-system-views/system-views/GS_DB_PRIVILEGES.md) + + [GS_FILE_STAT](./reference-guide/system-catalogs-and-system-views/system-views/GS_FILE_STAT.md) + + [GS_GSC_MEMORY_DETAIL](./reference-guide/system-catalogs-and-system-views/system-views/GS_GSC_MEMORY_DETAIL.md) + + [GS_INSTANCE_TIME](./reference-guide/system-catalogs-and-system-views/system-views/GS_INSTANCE_TIME.md) + + [GS_LABELS](./reference-guide/system-catalogs-and-system-views/system-views/GS_LABELS.md) + + [GS_LSC_MEMORY_DETAIL](./reference-guide/system-catalogs-and-system-views/system-views/GS_LSC_MEMORY_DETAIL.md) + + [GS_MASKING](./reference-guide/system-catalogs-and-system-views/system-views/GS_MASKING.md) + + [GS_MATVIEWS](./reference-guide/system-catalogs-and-system-views/system-views/GS_MATVIEWS.md) + + [GS_OS_RUN_INFO](./reference-guide/system-catalogs-and-system-views/system-views/GS_OS_RUN_INFO.md) + + [GS_REDO_STAT](./reference-guide/system-catalogs-and-system-views/system-views/GS_REDO_STAT.md) + + [GS_SESSION_CPU_STATISTICS](./reference-guide/system-catalogs-and-system-views/system-views/GS_SESSION_CPU_STATISTICS.md) + + [GS_SESSION_MEMORY](./reference-guide/system-catalogs-and-system-views/system-views/GS_SESSION_MEMORY.md) + + [GS_SESSION_MEMORY_CONTEXT](./reference-guide/system-catalogs-and-system-views/system-views/GS_SESSION_MEMORY_CONTEXT.md) + + [GS_SESSION_MEMORY_DETAIL](./reference-guide/system-catalogs-and-system-views/system-views/GS_SESSION_MEMORY_DETAIL.md) + + [GS_SESSION_MEMORY_STATISTICS](./reference-guide/system-catalogs-and-system-views/system-views/GS_SESSION_MEMORY_STATISTICS.md) + + [GS_SESSION_STAT](./reference-guide/system-catalogs-and-system-views/system-views/GS_SESSION_STAT.md) + + [GS_SESSION_TIME](./reference-guide/system-catalogs-and-system-views/system-views/GS_SESSION_TIME.md) + + [GS_SQL_COUNT](./reference-guide/system-catalogs-and-system-views/system-views/GS_SQL_COUNT.md) + + [GS_STAT_SESSION_CU](./reference-guide/system-catalogs-and-system-views/system-views/GS_STAT_SESSION_CU.md) + + [GS_THREAD_MEMORY_CONTEXT](./reference-guide/system-catalogs-and-system-views/system-views/GS_THREAD_MEMORY_CONTEXT.md) + + [GS_TOTAL_MEMORY_DETAIL](./reference-guide/system-catalogs-and-system-views/system-views/GS_TOTAL_MEMORY_DETAIL.md) + + [GS_WLM_CGROUP_INFO](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_CGROUP_INFO.md) + + [GS_WLM_EC_OPERATOR_STATISTICS](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_EC_OPERATOR_STATISTICS.md) + + [GS_WLM_OPERATOR_HISTORY](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_OPERATOR_HISTORY.md) + + [GS_WLM_OPERATOR_STATISTICS](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_OPERATOR_STATISTICS.md) + + [GS_WLM_PLAN_OPERATOR_HISTORY](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_PLAN_OPERATOR_HISTORY.md) + + [GS_WLM_REBUILD_USER_RESOURCE_POOL](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_REBUILD_USER_RESOURCE_POOL.md) + + [GS_WLM_RESOURCE_POOL](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_RESOURCE_POOL.md) + + [GS_WLM_SESSION_HISTORY](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_SESSION_HISTORY.md) + + [GS_WLM_SESSION_INFO](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_SESSION_INFO.md) + + [GS_WLM_SESSION_INFO_ALL](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_SESSION_INFO_ALL.md) + + [GS_WLM_SESSION_STATISTICS](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_SESSION_STATISTICS.md) + + [GS_WLM_USER_INFO](./reference-guide/system-catalogs-and-system-views/system-views/GS_WLM_USER_INFO.md) + + [GS_WRITE_TERM_LOG](./reference-guide/system-catalogs-and-system-views/system-views/GS_WRITE_TERM_LOG.md) + + [MPP_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/MPP_TABLES.md) + + [PG_AVAILABLE_EXTENSION_VERSIONS](./reference-guide/system-catalogs-and-system-views/system-views/PG_AVAILABLE_EXTENSION_VERSIONS.md) + + [PG_AVAILABLE_EXTENSIONS](./reference-guide/system-catalogs-and-system-views/system-views/PG_AVAILABLE_EXTENSIONS.md) + + [PG_COMM_DELAY](./reference-guide/system-catalogs-and-system-views/system-views/PG_COMM_DELAY.md) + + [PG_COMM_RECV_STREAM](./reference-guide/system-catalogs-and-system-views/system-views/PG_COMM_RECV_STREAM.md) + + [PG_COMM_SEND_STREAM](./reference-guide/system-catalogs-and-system-views/system-views/PG_COMM_SEND_STREAM.md) + + [PG_COMM_STATUS](./reference-guide/system-catalogs-and-system-views/system-views/PG_COMM_STATUS.md) + + [PG_CONTROL_GROUP_CONFIG](./reference-guide/system-catalogs-and-system-views/system-views/PG_CONTROL_GROUP_CONFIG.md) + + [PG_CURSORS](./reference-guide/system-catalogs-and-system-views/system-views/PG_CURSORS.md) + + [PG_EXT_STATS](./reference-guide/system-catalogs-and-system-views/system-views/PG_EXT_STATS.md) + + [PG_GET_INVALID_BACKENDS](./reference-guide/system-catalogs-and-system-views/system-views/PG_GET_INVALID_BACKENDS.md) + + [PG_GET_SENDERS_CATCHUP_TIME](./reference-guide/system-catalogs-and-system-views/system-views/PG_GET_SENDERS_CATCHUP_TIME.md) + + [PG_GROUP](./reference-guide/system-catalogs-and-system-views/system-views/PG_GROUP.md) + + [PG_GTT_ATTACHED_PIDS](./reference-guide/system-catalogs-and-system-views/system-views/PG_GTT_ATTACHED_PIDS.md) + + [PG_GTT_RELSTATS](./reference-guide/system-catalogs-and-system-views/system-views/PG_GTT_RELSTATS.md) + + [PG_GTT_STATS](./reference-guide/system-catalogs-and-system-views/system-views/PG_GTT_STATS.md) + + [PG_INDEXES](./reference-guide/system-catalogs-and-system-views/system-views/PG_INDEXES.md) + + [PG_LOCKS](./reference-guide/system-catalogs-and-system-views/system-views/PG_LOCKS.md) + + [PG_NODE_ENV](./reference-guide/system-catalogs-and-system-views/system-views/PG_NODE_ENV.md) + + [PG_OS_THREADS](./reference-guide/system-catalogs-and-system-views/system-views/PG_OS_THREADS.md) + + [PG_PREPARED_STATEMENTS](./reference-guide/system-catalogs-and-system-views/system-views/PG_PREPARED_STATEMENTS.md) + + [PG_PREPARED_XACTS](./reference-guide/system-catalogs-and-system-views/system-views/PG_PREPARED_XACTS.md) + + [PG_PUBLICATION_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_PUBLICATION_TABLES.md) + + [PG_REPLICATION_ORIGIN_STATUS](./reference-guide/system-catalogs-and-system-views/system-views/PG_REPLICATION_ORIGIN_STATUS.md) + + [PG_REPLICATION_SLOTS](./reference-guide/system-catalogs-and-system-views/system-views/PG_REPLICATION_SLOTS.md) + + [PG_RLSPOLICIES](./reference-guide/system-catalogs-and-system-views/system-views/PG_RLSPOLICIES.md) + + [PG_ROLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_ROLES.md) + + [PG_RULES](./reference-guide/system-catalogs-and-system-views/system-views/PG_RULES.md) + + [PG_RUNNING_XACTS](./reference-guide/system-catalogs-and-system-views/system-views/PG_RUNNING_XACTS.md) + + [PG_SECLABELS](./reference-guide/system-catalogs-and-system-views/system-views/PG_SECLABELS.md) + + [PG_SESSION_IOSTAT](./reference-guide/system-catalogs-and-system-views/system-views/PG_SESSION_IOSTAT.md) + + [PG_SESSION_WLMSTAT](./reference-guide/system-catalogs-and-system-views/system-views/PG_SESSION_WLMSTAT.md) + + [PG_SETTINGS](./reference-guide/system-catalogs-and-system-views/system-views/PG_SETTINGS.md) + + [PG_SHADOW](./reference-guide/system-catalogs-and-system-views/system-views/PG_SHADOW.md) + + [PG_STAT_ACTIVITY](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_ACTIVITY.md) + + [PG_STAT_ACTIVITY_NG](./reference-guide/system-catalogs-and-system-views/system-views/.md) + + [PG_STAT_ALL_INDEXES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_ALL_INDEXES.md) + + [PG_STAT_ALL_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_ALL_TABLES.md) + + [PG_STAT_BAD_BLOCK](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_BAD_BLOCK.md) + + [PG_STAT_BGWRITER](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_BGWRITER.md) + + [PG_STAT_DATABASE](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_DATABASE.md) + + [PG_STAT_DATABASE_CONFLICTS](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_DATABASE_CONFLICTS.md) + + [PG_STAT_REPLICATION](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_REPLICATION.md) + + [PG_STAT_SUBSCRIPTION](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_SUBSCRIPTION.md) + + [PG_STAT_SYS_INDEXES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_SYS_INDEXES.md) + + [PG_STAT_SYS_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_SYS_TABLES.md) + + [PG_STAT_USER_FUNCTIONS](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_USER_FUNCTIONS.md) + + [PG_STAT_USER_INDEXES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_USER_INDEXES.md) + + [PG_STAT_USER_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_USER_TABLES.md) + + [PG_STAT_XACT_ALL_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_XACT_ALL_TABLES.md) + + [PG_STAT_XACT_SYS_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_XACT_SYS_TABLES.md) + + [PG_STAT_XACT_USER_FUNCTIONS](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_XACT_USER_FUNCTIONS.md) + + [PG_STAT_XACT_USER_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STAT_XACT_USER_TABLES.md) + + [PG_STATIO_ALL_INDEXES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_ALL_INDEXES.md) + + [PG_STATIO_ALL_SEQUENCES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_ALL_SEQUENCES.md) + + [PG_STATIO_ALL_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_ALL_TABLES.md) + + [PG_STATIO_SYS_INDEXES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_SYS_INDEXES.md) + + [PG_STATIO_SYS_SEQUENCES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_SYS_SEQUENCES.md) + + [PG_STATIO_SYS_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_SYS_TABLES.md) + + [PG_STATIO_USER_INDEXES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_USER_INDEXES.md) + + [PG_STATIO_USER_SEQUENCES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_USER_SEQUENCES.md) + + [PG_STATIO_USER_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATIO_USER_TABLES.md) + + [PG_STATS](./reference-guide/system-catalogs-and-system-views/system-views/PG_STATS.md) + + [PG_TABLES](./reference-guide/system-catalogs-and-system-views/system-views/PG_TABLES.md) + + [PG_TDE_INFO](./reference-guide/system-catalogs-and-system-views/system-views/PG_TDE_INFO.md) + + [PG_THREAD_WAIT_STATUS](./reference-guide/system-catalogs-and-system-views/system-views/PG_THREAD_WAIT_STATUS.md) + + [PG_TIMEZONE_ABBREVS](./reference-guide/system-catalogs-and-system-views/system-views/PG_TIMEZONE_ABBREVS.md) + + [PG_TIMEZONE_NAMES](./reference-guide/system-catalogs-and-system-views/system-views/PG_TIMEZONE_NAMES.md) + + [PG_TOTAL_MEMORY_DETAIL](./reference-guide/system-catalogs-and-system-views/system-views/PG_TOTAL_MEMORY_DETAIL.md) + + [PG_TOTAL_USER_RESOURCE_INFO](./reference-guide/system-catalogs-and-system-views/system-views/PG_TOTAL_USER_RESOURCE_INFO.md) + + [PG_TOTAL_USER_RESOURCE_INFO_OID](./reference-guide/system-catalogs-and-system-views/system-views/PG_TOTAL_USER_RESOURCE_INFO_OID.md) + + [PG_USER](./reference-guide/system-catalogs-and-system-views/system-views/PG_USER.md) + + [PG_USER_MAPPINGS](./reference-guide/system-catalogs-and-system-views/system-views/PG_USER_MAPPINGS.md) + + [PG_VARIABLE_INFO](./reference-guide/system-catalogs-and-system-views/system-views/PG_VARIABLE_INFO.md) + + [PG_VIEWS](./reference-guide/system-catalogs-and-system-views/system-views/PG_VIEWS.md) + + [PG_WLM_STATISTICS](./reference-guide/system-catalogs-and-system-views/system-views/PG_WLM_STATISTICS.md) + + [PGXC_PREPARED_XACTS](./reference-guide/system-catalogs-and-system-views/system-views/PGXC_PREPARED_XACTS.md) + + [PLAN_TABLE](./reference-guide/system-catalogs-and-system-views/system-views/PLAN_TABLE.md) + + 系统函数 + + [逻辑操作符](/reference-guide/functions-and-operators/1-logical-operators.md) + + [比较操作符](/reference-guide/functions-and-operators/2-comparison-operators.md) + + [字符处理函数和操作符](/reference-guide/functions-and-operators/3-character-processing-functions-and-operators.md) + + [二进制字符串函数和操作符](/reference-guide/functions-and-operators/4-binary-string-functions-and-operators.md) + + [位串函数和操作符](/reference-guide/functions-and-operators/5-bit-string-functions-and-operators.md) + + [模式匹配操作符](/reference-guide/functions-and-operators/6-mode-matching-operators.md) + + [数字操作函数和操作符](/reference-guide/functions-and-operators/7-mathematical-functions-and-operators.md) + + [时间和日期处理函数和操作符](/reference-guide/functions-and-operators/8-date-and-time-processing-functions-and-operators.md) + + [类型转换函数](/reference-guide/functions-and-operators/9-type-conversion-functions.md) + + [几何函数和操作符](/reference-guide/functions-and-operators/10-geometric-functions-and-operators.md) + + [网络地址函数和操作符](/reference-guide/functions-and-operators/11-network-address-functions-and-operators.md) + + [文本检索函数和操作符](/reference-guide/functions-and-operators/12-text-search-functions-and-operators.md) + + [JSON/JSONB函数和操作符](/reference-guide/functions-and-operators/13-json-functions.md) + + [HLL函数和操作符](/reference-guide/functions-and-operators/13.1-hll-functions-and-operators.md) + + [SEQUENCE函数](/reference-guide/functions-and-operators/14-sequence-functions.md) + + [数组函数和操作符](/reference-guide/functions-and-operators/15-array-functions-and-operators.md) + + [范围函数和操作符](/reference-guide/functions-and-operators/16-range-functions-and-operators.md) + + [聚集函数](/reference-guide/functions-and-operators/17-aggregate-functions.md) + + [窗口函数](/reference-guide/functions-and-operators/18-window-functions.md) + + [安全函数](/reference-guide/functions-and-operators/19-security-functions.md) + + [账本数据库的函数](/reference-guide/functions-and-operators/20.1-ledger-database-functions.md) + + [密态等值的函数](/reference-guide/functions-and-operators/20-encrypted-equality-functions.md) + + [返回集合的函数](/reference-guide/functions-and-operators/21-set-returning-functions.md) + + [条件表达式函数](/reference-guide/functions-and-operators/22-conditional-expressions-functions.md) + + [系统信息函数](/reference-guide/functions-and-operators/23-system-information-functions.md) + + 系统管理函数 + + [配置设置函数](/reference-guide/functions-and-operators/24-system-management-functions/1-configuration-settings-functions.md) + + [通用文件访问函数](/reference-guide/functions-and-operators/24-system-management-functions/2-universal-file-access-functions.md) + + [服务器信号函数](/reference-guide/functions-and-operators/24-system-management-functions/3-server-signal-functions.md) + + [备份恢复控制函数](/reference-guide/functions-and-operators/24-system-management-functions/4-backup-and-restoration-control-functions.md) + + [快照同步函数](/reference-guide/functions-and-operators/24-system-management-functions/5-snapshot-synchronization-functions.md) + + [数据库对象函数](/reference-guide/functions-and-operators/24-system-management-functions/6-database-object-functions.md) + + [咨询锁函数](/reference-guide/functions-and-operators/24-system-management-functions/7-advisory-lock-functions.md) + + [逻辑复制函数](/reference-guide/functions-and-operators/24-system-management-functions/8-logical-replication-functions.md) + + [段页式存储函数](/reference-guide/functions-and-operators/24-system-management-functions/9.1-segment-page-storage-functions.md) + + [其它函数](/reference-guide/functions-and-operators/24-system-management-functions/9-other-functions.md) + + [Undo系统函数](/reference-guide/functions-and-operators/24-system-management-functions/10-undo-system-functions.md) + + [统计信息函数](/reference-guide/functions-and-operators/25-statistics-information-functions.md) + + [触发器函数](/reference-guide/functions-and-operators/26-trigger-functions.md) + + [HashFunc函数](/reference-guide/functions-and-operators/27.1-hash-function.md) + + [提示信息函数](/reference-guide/functions-and-operators/27.2-prompt-message-function.md) + + [全局临时表函数](/reference-guide/functions-and-operators/27-global-temporary-table-functions.md) + + [故障注入系统函数](/reference-guide/functions-and-operators/28.1-fault-injection-system-function.md) + + [AI特性函数](/reference-guide/functions-and-operators/28-ai-feature-functions.md) + + [动态数据脱敏函数](/reference-guide/functions-and-operators/29.1-dynamic-data-masking-functions.md) + + [其他系统函数](/reference-guide/functions-and-operators/29-other-system-functions.md) + + [内部函数](/reference-guide/functions-and-operators/30-internal-functions.md) + + [Global SysCache特性函数](/reference-guide/functions-and-operators/32-global-syscache-feature-functions.md) + + [数据损坏检测修复函数](/reference-guide/functions-and-operators/33-data-damage-detection-and-repair-functions.md) + + [废弃函数](/reference-guide/functions-and-operators/31-obsolete-functions.md) + + 支持的数据类型 + + [数值类型](/reference-guide/supported-data-types/1-numeric-data-types.md) + + [货币类型](/reference-guide/supported-data-types/2-monetary.md) + + [布尔类型](/reference-guide/supported-data-types/3-boolean-data-types.md) + + [枚举类型](/reference-guide/supported-data-types/4.1-enumerated-types.md) + + [字符类型](/reference-guide/supported-data-types/4-character-data-types.md) + + [二进制类型](/reference-guide/supported-data-types/5-binary-data-types.md) + + [日期/时间类型](/reference-guide/supported-data-types/6-date-time-types.md) + + [几何类型](/reference-guide/supported-data-types/7-geometric.md) + + [网络地址类型](/reference-guide/supported-data-types/8-network-address.md) + + [位串类型](/reference-guide/supported-data-types/9-bit-string-types.md) + + [文本搜索类型](/reference-guide/supported-data-types/10-text-search-types.md) + + [UUID类型](/reference-guide/supported-data-types/11-uuid-type.md) + + [JSON/JSONB类型](/reference-guide/supported-data-types/12-json-types.md) + + [HLL数据类型](/reference-guide/supported-data-types/13-HLL.md) + + [数组类型](/reference-guide/supported-data-types/13.0-array-types.md) + + [范围类型](/reference-guide/supported-data-types/13.1-range.md) + + [对象标识符类型](/reference-guide/supported-data-types/14-object-identifier-types.md) + + [伪类型](/reference-guide/supported-data-types/15-pseudo-types.md) + + [列存表支持的数据类型](/reference-guide/supported-data-types/16-data-types-supported-by-column-store-tables.md) + + [XML类型](/reference-guide/supported-data-types/17-xml-type.md) + + [账本数据库使用的数据类型](/reference-guide/supported-data-types/18-data-type-used-by-the-ledger-database.md) + + SQL语法 + + [ABORT](/reference-guide/sql-syntax/ABORT.md) + + [ALTER AGGREGATE](/reference-guide/sql-syntax/ALTER-AGGREGATE.md) + + [ALTER AUDIT POLICY](/reference-guide/sql-syntax/ALTER-AUDIT-POLICY.md) + + [ALTER DATABASE](/reference-guide/sql-syntax/ALTER-DATABASE.md) + + [ALTER DATA SOURCE](/reference-guide/sql-syntax/ALTER-DATA-SOURCE.md) + + [ALTER DEFAULT PRIVILEGES](/reference-guide/sql-syntax/ALTER-DEFAULT-PRIVILEGES.md) + + [ALTER DIRECTORY](/reference-guide/sql-syntax/ALTER-DIRECTORY.md) + + [ALTER EXTENSION](/reference-guide/sql-syntax/ALTER-EXTENSION.md) + + [ALTER FOREIGN TABLE](/reference-guide/sql-syntax/ALTER-FOREIGN-TABLE.md) + + [ALTER FUNCTION](/reference-guide/sql-syntax/ALTER-FUNCTION.md) + + [ALTER GLOBAL CONFIGURATION](/reference-guide/sql-syntax/ALTER-GLOBAL-CONFIGURATION.md) + + [ALTER GROUP](/reference-guide/sql-syntax/ALTER-GROUP.md) + + [ALTER INDEX](/reference-guide/sql-syntax/ALTER-INDEX.md) + + [ALTER LANGUAGE](/reference-guide/sql-syntax/ALTER-LANGUAGE.md) + + [ALTER LARGE OBJECT](/reference-guide/sql-syntax/ALTER-LARGE-OBJECT.md) + + [ALTER MASKING POLICY](/reference-guide/sql-syntax/ALTER-MASKING-POLICY.md) + + [ALTER MATERIALIZED VIEW](/reference-guide/sql-syntax/ALTER-MATERIALIZED-VIEW.md) + + [ALTER OPERATOR](/reference-guide/sql-syntax/ALTER-OPERATOR.md) + + [ALTER PACKAGE](/reference-guide/sql-syntax/ALTER-PACKAGE.md) + + [ALTER PROCEDURE](/reference-guide/sql-syntax/ALTER-PROCEDURE.md) + + [ALTER PUBLICATION](/reference-guide/sql-syntax/ALTER-PUBLICATION.md) + + [ALTER RESOURCE LABEL](/reference-guide/sql-syntax/ALTER-RESOURCE-LABEL.md) + + [ALTER RESOURCE POOL](/reference-guide/sql-syntax/ALTER-RESOURCE-POOL.md) + + [ALTER ROLE](/reference-guide/sql-syntax/ALTER-ROLE.md) + + [ALTER ROW LEVEL SECURITY POLICY](/reference-guide/sql-syntax/ALTER-ROW-LEVEL-SECURITY-POLICY.md) + + [ALTER RULE](/reference-guide/sql-syntax/ALTER-RULE.md) + + [ALTER SCHEMA](/reference-guide/sql-syntax/ALTER-SCHEMA.md) + + [ALTER SEQUENCE](/reference-guide/sql-syntax/ALTER-SEQUENCE.md) + + [ALTER SERVER](/reference-guide/sql-syntax/ALTER-SERVER.md) + + [ALTER SESSION](/reference-guide/sql-syntax/ALTER-SESSION.md) + + [ALTER SUBSCRIPTION](/reference-guide/sql-syntax/ALTER-SUBSCRIPTION.md) + + [ALTER SYNONYM](/reference-guide/sql-syntax/ALTER-SYNONYM.md) + + [ALTER SYSTEM KILL SESSION](/reference-guide/sql-syntax/ALTER-SYSTEM-KILL-SESSION.md) + + [ALTER SYSTEM SET](/reference-guide/sql-syntax/ALTER-SYSTEM-SET.md) + + [ALTER TABLE](/reference-guide/sql-syntax/ALTER-TABLE.md) + + [ALTER TABLE PARTITION](/reference-guide/sql-syntax/ALTER-TABLE-PARTITION.md) + + [ALTER TABLE SUBPARTITION](/reference-guide/sql-syntax/ALTER-TABLE-SUBPARTITION.md) + + [ALTER TABLESPACE](/reference-guide/sql-syntax/ALTER-TABLESPACE.md) + + [ALTER TEXT SEARCH CONFIGURATION](/reference-guide/sql-syntax/ALTER-TEXT-SEARCH-CONFIGURATION.md) + + [ALTER TEXT SEARCH DICTIONARY](/reference-guide/sql-syntax/ALTER-TEXT-SEARCH-DICTIONARY.md) + + [ALTER TRIGGER](/reference-guide/sql-syntax/ALTER-TRIGGER.md) + + [ALTER TYPE](/reference-guide/sql-syntax/ALTER-TYPE.md) + + [ALTER USER](/reference-guide/sql-syntax/ALTER-USER.md) + + [ALTER USER MAPPING](/reference-guide/sql-syntax/ALTER-USER-MAPPING.md) + + [ALTER VIEW](/reference-guide/sql-syntax/ALTER-VIEW.md) + + [ANALYZE | ANALYSE](/reference-guide/sql-syntax/ANALYZE-ANALYSE.md) + + [BEGIN](/reference-guide/sql-syntax/BEGIN.md) + + [CALL](/reference-guide/sql-syntax/CALL.md) + + [CHECKPOINT](/reference-guide/sql-syntax/CHECKPOINT.md) + + [CLEAN CONNECTION](/reference-guide/sql-syntax/CLEAN-CONNECTION.md) + + [CLOSE](/reference-guide/sql-syntax/CLOSE.md) + + [CLUSTER](/reference-guide/sql-syntax/CLUSTER.md) + + [COMMENT](/reference-guide/sql-syntax/COMMENT.md) + + [COMMIT | END](/reference-guide/sql-syntax/COMMIT-END.md) + + [COMMIT PREPARED](/reference-guide/sql-syntax/COMMIT-PREPARED.md) + + [CONNECT BY](/reference-guide/sql-syntax/CONNECT-BY.md) + + [COPY](/reference-guide/sql-syntax/COPY.md) + + [CREATE AGGREGATE](/reference-guide/sql-syntax/CREATE-AGGREGATE.md) + + [CREATE AUDIT POLICY](/reference-guide/sql-syntax/CREATE-AUDIT-POLICY.md) + + [CREATE CAST](/reference-guide/sql-syntax/CREATE-CAST.md) + + [CREATE CLIENT MASTER KEY](/reference-guide/sql-syntax/CREATE-CLIENT-MASTER-KEY.md) + + [CREATE COLUMN ENCRYPTION KEY](/reference-guide/sql-syntax/CREATE-COLUMN-ENCRYPTION-KEY.md) + + [CREATE DATABASE](/reference-guide/sql-syntax/CREATE-DATABASE.md) + + [CREATE DATA SOURCE](/reference-guide/sql-syntax/CREATE-DATA-SOURCE.md) + + [CREATE DIRECTORY](/reference-guide/sql-syntax/CREATE-DIRECTORY.md) + + [CREATE EXTENSION](/reference-guide/sql-syntax/CREATE-EXTENSION.md) + + [CREATE FOREIGN TABLE](/reference-guide/sql-syntax/CREATE-FOREIGN-TABLE.md) + + [CREATE FUNCTION](/reference-guide/sql-syntax/CREATE-FUNCTION.md) + + [CREATE GROUP](/reference-guide/sql-syntax/CREATE-GROUP.md) + + [CREATE INCREMENTAL MATERIALIZED VIEW](/reference-guide/sql-syntax/CREATE-INCREMENTAL-MATERIALIZED-VIEW.md) + + [CREATE INDEX](/reference-guide/sql-syntax/CREATE-INDEX.md) + + [CREATE LANGUAGE](/reference-guide/sql-syntax/CREATE-LANGUAGE.md) + + [CREATE MASKING POLICY](/reference-guide/sql-syntax/CREATE-MASKING-POLICY.md) + + [CREATE MATERIALIZED VIEW](/reference-guide/sql-syntax/CREATE-MATERIALIZED-VIEW.md) + + [CREATE MODEL](/reference-guide/sql-syntax/CREATE-MODEL.md) + + [CREATE OPERATOR](/reference-guide/sql-syntax/CREATE-OPERATOR.md) + + [CREATE PACKAGE](/reference-guide/sql-syntax/CREATE-PACKAGE.md) + + [CREATE PROCEDURE](/reference-guide/sql-syntax/CREATE-PROCEDURE.md) + + [CREATE PUBLICATION](/reference-guide/sql-syntax/CREATE-PUBLICATION.md) + + [CREATE RESOURCE LABEL](/reference-guide/sql-syntax/CREATE-RESOURCE-LABEL.md) + + [CREATE RESOURCE POOL](/reference-guide/sql-syntax/CREATE-RESOURCE-POOL.md) + + [CREATE ROLE](/reference-guide/sql-syntax/CREATE-ROLE.md) + + [CREATE ROW LEVEL SECURITY POLICY](/reference-guide/sql-syntax/CREATE-ROW-LEVEL-SECURITY-POLICY.md) + + [CREATE RULE](/reference-guide/sql-syntax/CREATE-RULE.md) + + [CREATE SCHEMA](/reference-guide/sql-syntax/CREATE-SCHEMA.md) + + [CREATE SEQUENCE](/reference-guide/sql-syntax/CREATE-SEQUENCE.md) + + [CREATE SERVER](/reference-guide/sql-syntax/CREATE-SERVER.md) + + [CREATE SUBSCRIPTION](/reference-guide/sql-syntax/CREATE-SUBSCRIPTION.md) + + [CREATE SYNONYM](/reference-guide/sql-syntax/CREATE-SYNONYM.md) + + [CREATE TABLE](/reference-guide/sql-syntax/CREATE-TABLE.md) + + [CREATE TABLE AS](/reference-guide/sql-syntax/CREATE-TABLE-AS.md) + + [CREATE TABLE PARTITION](/reference-guide/sql-syntax/CREATE-TABLE-PARTITION.md) + + [CREATE TABLE SUBPARTITION](/reference-guide/sql-syntax/CREATE-TABLE-SUBPARTITION.md) + + [CREATE TABLESPACE](/reference-guide/sql-syntax/CREATE-TABLESPACE.md) + + [CREATE TEXT SEARCH CONFIGURATION](/reference-guide/sql-syntax/CREATE-TEXT-SEARCH-CONFIGURATION.md) + + [CREATE TEXT SEARCH DICTIONARY](/reference-guide/sql-syntax/CREATE-TEXT-SEARCH-DICTIONARY.md) + + [CREATE TRIGGER](/reference-guide/sql-syntax/CREATE-TRIGGER.md) + + [CREATE TYPE](/reference-guide/sql-syntax/CREATE-TYPE.md) + + [CREATE USER](/reference-guide/sql-syntax/CREATE-USER.md) + + [CREATE USER MAPPING](/reference-guide/sql-syntax/CREATE-USER-MAPPING.md) + + [CREATE VIEW](/reference-guide/sql-syntax/CREATE-VIEW.md) + + [CREATE WEAK PASSWORD DICTIONARY](/reference-guide/sql-syntax/CREATE-WEAK-PASSWORD-DICTIONARY.md) + + [CURSOR](/reference-guide/sql-syntax/CURSOR.md) + + [DEALLOCATE](/reference-guide/sql-syntax/DEALLOCATE.md) + + [DECLARE](/reference-guide/sql-syntax/DECLARE.md) + + [DELETE](/reference-guide/sql-syntax/DELETE.md) + + [DO](/reference-guide/sql-syntax/DO.md) + + [DROP AGGREGATE](/reference-guide/sql-syntax/DROP-AGGREGATE.md) + + [DROP AUDIT POLICY](/reference-guide/sql-syntax/DROP-AUDIT-POLICY.md) + + [DROP CAST](/reference-guide/sql-syntax/DROP-CAST.md) + + [DROP CLIENT MASTER KEY](/reference-guide/sql-syntax/DROP-CLIENT-MASTER-KEY.md) + + [DROP COLUMN ENCRYPTION KEY](/reference-guide/sql-syntax/DROP-COLUMN-ENCRYPTION-KEY.md) + + [DROP DATABASE](/reference-guide/sql-syntax/DROP-DATABASE.md) + + [DROP DATA SOURCE](/reference-guide/sql-syntax/DROP-DATA-SOURCE.md) + + [DROP DIRECTORY](/reference-guide/sql-syntax/DROP-DIRECTORY.md) + + [DROP EXTENSION](/reference-guide/sql-syntax/DROP-EXTENSION.md) + + [DROP FOREIGN TABLE](/reference-guide/sql-syntax/DROP-FOREIGN-TABLE.md) + + [DROP FUNCTION](/reference-guide/sql-syntax/DROP-FUNCTION.md) + + [DROP GLOBAL CONFIGURATION](/reference-guide/sql-syntax/DROP-GLOBAL-CONFIGURATION.md) + + [DROP GROUP](/reference-guide/sql-syntax/DROP-GROUP.md) + + [DROP INDEX](/reference-guide/sql-syntax/DROP-INDEX.md) + + [DROP LANGUAGE](/reference-guide/sql-syntax/DROP-LANGUAGE.md) + + [DROP MASKING POLICY](/reference-guide/sql-syntax/DROP-MASKING-POLICY.md) + + [DROP MATERIALIZED VIEW](/reference-guide/sql-syntax/DROP-MATERIALIZED-VIEW.md) + + [DROP MODEL](/reference-guide/sql-syntax/DROP-MODEL.md) + + [DROP OPERATOR](/reference-guide/sql-syntax/DROP-OPERATOR.md) + + [DROP OWNED](/reference-guide/sql-syntax/DROP-OWNED.md) + + [DROP PACKAGE](/reference-guide/sql-syntax/DROP-PACKAGE.md) + + [DROP PROCEDURE](/reference-guide/sql-syntax/DROP-PROCEDURE.md) + + [DROP PUBLICATION](/reference-guide/sql-syntax/DROP-PUBLICATION.md) + + [DROP RESOURCE LABEL](/reference-guide/sql-syntax/DROP-RESOURCE-LABEL.md) + + [DROP RESOURCE POOL](/reference-guide/sql-syntax/DROP-RESOURCE-POOL.md) + + [DROP ROLE](/reference-guide/sql-syntax/DROP-ROLE.md) + + [DROP ROW LEVEL SECURITY POLICY](/reference-guide/sql-syntax/DROP-ROW-LEVEL-SECURITY-POLICY.md) + + [DROP RULE](/reference-guide/sql-syntax/DROP-RULE.md) + + [DROP SCHEMA](/reference-guide/sql-syntax/DROP-SCHEMA.md) + + [DROP SEQUENCE](/reference-guide/sql-syntax/DROP-SEQUENCE.md) + + [DROP SERVER](/reference-guide/sql-syntax/DROP-SERVER.md) + + [DROP SUBSCRIPTION](/reference-guide/sql-syntax/DROP-SUBSCRIPTION.md) + + [DROP SYNONYM](/reference-guide/sql-syntax/DROP-SYNONYM.md) + + [DROP TABLE](/reference-guide/sql-syntax/DROP-TABLE.md) + + [DROP TABLESPACE](/reference-guide/sql-syntax/DROP-TABLESPACE.md) + + [DROP TEXT SEARCH CONFIGURATION](/reference-guide/sql-syntax/DROP-TEXT-SEARCH-CONFIGURATION.md) + + [DROP TEXT SEARCH DICTIONARY](/reference-guide/sql-syntax/DROP-TEXT-SEARCH-DICTIONARY.md) + + [DROP TRIGGER](/reference-guide/sql-syntax/DROP-TRIGGER.md) + + [DROP TYPE](/reference-guide/sql-syntax/DROP-TYPE.md) + + [DROP USER](/reference-guide/sql-syntax/DROP-USER.md) + + [DROP USER MAPPING](/reference-guide/sql-syntax/DROP-USER-MAPPING.md) + + [DROP VIEW](/reference-guide/sql-syntax/DROP-VIEW.md) + + [DROP WEAK PASSWORD DICTIONARY](/reference-guide/sql-syntax/DROP-WEAK-PASSWORD-DICTIONARY.md) + + [EXECUTE](/reference-guide/sql-syntax/EXECUTE.md) + + [EXECUTE DIRECT](/reference-guide/sql-syntax/EXECUTE-DIRECT.md) + + [EXPLAIN](/reference-guide/sql-syntax/EXPLAIN.md) + + [EXPLAIN PLAN](/reference-guide/sql-syntax/EXPLAIN-PLAN.md) + + [FETCH](/reference-guide/sql-syntax/FETCH.md) + + [GRANT](/reference-guide/sql-syntax/GRANT.md) + + [INSERT](/reference-guide/sql-syntax/INSERT.md) + + [LOCK](/reference-guide/sql-syntax/LOCK.md) + + [MERGE INTO](/reference-guide/sql-syntax/MERGE-INTO.md) + + [MOVE](/reference-guide/sql-syntax/MOVE.md) + + [PREDICT BY](/reference-guide/sql-syntax/PREDICT-BY.md) + + [PREPARE](/reference-guide/sql-syntax/PREPARE.md) + + [PREPARE TRANSACTION](/reference-guide/sql-syntax/PREPARE-TRANSACTION.md) + + [PURGE](/reference-guide/sql-syntax/PURGE.md) + + [REASSIGN OWNED](/reference-guide/sql-syntax/REASSIGN-OWNED.md) + + [REFRESH INCREMENTAL MATERIALIZED VIEW](/reference-guide/sql-syntax/REFRESH-INCREMENTAL-MATERIALIZED-VIEW.md) + + [REFRESH MATERIALIZED VIEW](/reference-guide/sql-syntax/REFRESH-MATERIALIZED-VIEW.md) + + [REINDEX](/reference-guide/sql-syntax/REINDEX.md) + + [RELEASE SAVEPOINT](/reference-guide/sql-syntax/RELEASE-SAVEPOINT.md) + + [RESET](/reference-guide/sql-syntax/RESET.md) + + [REVOKE](/reference-guide/sql-syntax/REVOKE.md) + + [ROLLBACK](/reference-guide/sql-syntax/ROLLBACK.md) + + [ROLLBACK PREPARED](/reference-guide/sql-syntax/ROLLBACK-PREPARED.md) + + [ROLLBACK TO SAVEPOINT](/reference-guide/sql-syntax/ROLLBACK-TO-SAVEPOINT.md) + + [SAVEPOINT](/reference-guide/sql-syntax/SAVEPOINT.md) + + [SELECT](/reference-guide/sql-syntax/SELECT.md) + + [SELECT INTO](/reference-guide/sql-syntax/SELECT-INTO.md) + + [SET](/reference-guide/sql-syntax/SET.md) + + [SET CONSTRAINTS](/reference-guide/sql-syntax/SET-CONSTRAINTS.md) + + [SET ROLE](/reference-guide/sql-syntax/SET-ROLE.md) + + [SET SESSION AUTHORIZATION](/reference-guide/sql-syntax/SET-SESSION-AUTHORIZATION.md) + + [SET TRANSACTION](/reference-guide/sql-syntax/SET-TRANSACTION.md) + + [SHOW](/reference-guide/sql-syntax/SHOW.md) + + [SHUTDOWN](/reference-guide/sql-syntax/SHUTDOWN.md) + + [SNAPSHOT](/reference-guide/sql-syntax/SNAPSHOT.md) + + [START TRANSACTION](/reference-guide/sql-syntax/START-TRANSACTION.md) + + [TIMECAPSULE TABLE](/reference-guide/sql-syntax/TIMECAPSULE-TABLE.md) + + [TRUNCATE](/reference-guide/sql-syntax/TRUNCATE.md) + + [UPDATE](/reference-guide/sql-syntax/UPDATE.md) + + [VACUUM](/reference-guide/sql-syntax/VACUUM.md) + + [VALUES](/reference-guide/sql-syntax/VALUES.md) + + SQL参考 + + [MogDB SQL](/reference-guide/sql-reference/1-mogdb-sql.md) + + [关键字](/reference-guide/sql-reference/2-keywords.md) + + [常量与宏](/reference-guide/sql-reference/3-constant-and-macro.md) + + 表达式 + + [简单表达式](/reference-guide/sql-reference/4-expressions/1-simple-expressions.md) + + [条件表达式](/reference-guide/sql-reference/4-expressions/2-condition-expressions.md) + + [子查询表达式](/reference-guide/sql-reference/4-expressions/3-subquery-expressions.md) + + [数组表达式](/reference-guide/sql-reference/4-expressions/4-array-expressions.md) + + [行表达式](/reference-guide/sql-reference/4-expressions/5-row-expressions.md) + + 类型转换 + + [概述](/reference-guide/sql-reference/5-type-conversion/1-type-conversion-overview.md) + + [操作符](/reference-guide/sql-reference/5-type-conversion/2-operators.md) + + [函数](/reference-guide/sql-reference/5-type-conversion/3-functions.md) + + [值存储](/reference-guide/sql-reference/5-type-conversion/4-value-storage.md) + + [UNION,CASE和相关构造](/reference-guide/sql-reference/5-type-conversion/5-union-case-and-related-constructs.md) + + 全文检索 + + 介绍 + + [全文检索概述](/reference-guide/sql-reference/6-full-text-search/1-introduction/1-full-text-retrieval.md) + + [文档概念](/reference-guide/sql-reference/6-full-text-search/1-introduction/2-what-is-a-document.md) + + [基本文本匹配](/reference-guide/sql-reference/6-full-text-search/1-introduction/3-basic-text-matching.md) + + [分词器](/reference-guide/sql-reference/6-full-text-search/1-introduction/4-configurations.md) + + 表和索引 + + [搜索表](/reference-guide/sql-reference/6-full-text-search/2-tables-and-indexes/1-searching-a-table.md) + + [创建索引](/reference-guide/sql-reference/6-full-text-search/2-tables-and-indexes/2-creating-an-index.md) + + [索引使用约束](/reference-guide/sql-reference/6-full-text-search/2-tables-and-indexes/3-constraints-on-index-use.md) + + 控制文本搜索 + + [解析文档](/reference-guide/sql-reference/6-full-text-search/3-controlling-text-search/1-parsing-documents.md) + + [解析查询](/reference-guide/sql-reference/6-full-text-search/3-controlling-text-search/2-parsing-queries.md) + + [排序查询结果](/reference-guide/sql-reference/6-full-text-search/3-controlling-text-search/3-ranking-search-results.md) + + [高亮搜索结果](/reference-guide/sql-reference/6-full-text-search/3-controlling-text-search/4-highlighting-results.md) + + 附加功能 + + [处理tsvector](/reference-guide/sql-reference/6-full-text-search/4-additional-features/1-manipulating-tsvector.md) + + [处理查询](/reference-guide/sql-reference/6-full-text-search/4-additional-features/2-manipulating-queries.md) + + [查询重写](/reference-guide/sql-reference/6-full-text-search/4-additional-features/3-rewriting-queries.md) + + [收集文献统计](/reference-guide/sql-reference/6-full-text-search/4-additional-features/4-gathering-document-statistics.md) + + [解析器](/reference-guide/sql-reference/6-full-text-search/5-parser.md) + + 词典 + + [词典概述](/reference-guide/sql-reference/6-full-text-search/6-dictionaries/1-dictionaries-overview.md) + + [停用词](/reference-guide/sql-reference/6-full-text-search/6-dictionaries/2-stop-words.md) + + [Simple词典](/reference-guide/sql-reference/6-full-text-search/6-dictionaries/3-simple-dictionary.md) + + [Synonym词典](/reference-guide/sql-reference/6-full-text-search/6-dictionaries/4-synonym-dictionary.md) + + [Thesaurus词典](/reference-guide/sql-reference/6-full-text-search/6-dictionaries/5-thesaurus-dictionary.md) + + [Ispell词典](/reference-guide/sql-reference/6-full-text-search/6-dictionaries/6-ispell-dictionary.md) + + [Snowball词典](/reference-guide/sql-reference/6-full-text-search/6-dictionaries/7-snowball-dictionary.md) + + [配置示例](/reference-guide/sql-reference/6-full-text-search/7-configuration-examples.md) + + 测试和调试文本搜索 + + [分词器测试](/reference-guide/sql-reference/6-full-text-search/8-testing-and-debugging-text-search/1-testing-a-configuration.md) + + [解析器测试](/reference-guide/sql-reference/6-full-text-search/8-testing-and-debugging-text-search/2-testing-a-parser.md) + + [词典测试](/reference-guide/sql-reference/6-full-text-search/8-testing-and-debugging-text-search/3-testing-a-dictionary.md) + + [限制约束](/reference-guide/sql-reference/6-full-text-search/9-limitations.md) + + [系统操作](/reference-guide/sql-reference/7-system-operation.md) + + [事务控制](/reference-guide/sql-reference/8-controlling-transactions.md) + + [DDL语法一览表](/reference-guide/sql-reference/9-ddl-syntax-overview.md) + + [DML语法一览表](/reference-guide/sql-reference/10-dml-syntax-overview.md) + + [DCL语法一览表](/reference-guide/sql-reference/11-dcl-syntax-overview.md) + + 附录 + + GIN索引 + + [介绍](/reference-guide/sql-reference/13-appendix/1-gin-indexes/1-introduction.md) + + [扩展性](/reference-guide/sql-reference/13-appendix/1-gin-indexes/2-scalability.md) + + [实现](/reference-guide/sql-reference/13-appendix/1-gin-indexes/3-implementation.md) + + [GIN提示与技巧](/reference-guide/sql-reference/13-appendix/1-gin-indexes/4-gin-tips-and-tricks.md) + + [扩展函数](/reference-guide/sql-reference/13-appendix/2-extended-functions.md) + + [扩展语法](/reference-guide/sql-reference/13-appendix/3-extended-syntax.md) + + GUC参数说明 + + [GUC使用说明](/reference-guide/guc-parameters/1-guc-parameter-usage.md) + + [GUC参数列表](/reference-guide/guc-parameters/guc-parameter-list.md) + + [文件位置](/reference-guide/guc-parameters/2-file-location.md) + + 连接和认证 + + [连接设置](/reference-guide/guc-parameters/3-connection-and-authentication/1-connection-settings.md) + + [安全和认证](/reference-guide/guc-parameters/3-connection-and-authentication/2-security-and-authentication.md) + + [通信库参数](/reference-guide/guc-parameters/3-connection-and-authentication/3-communication-library-parameters.md) + + 资源消耗 + + [内存](/reference-guide/guc-parameters/4-resource-consumption/1-memory.md) + + [磁盘空间](/reference-guide/guc-parameters/4-resource-consumption/2-disk-space.md) + + [内核资源使用](/reference-guide/guc-parameters/4-resource-consumption/3-kernel-resource-usage.md) + + [基于开销的清理延迟](/reference-guide/guc-parameters/4-resource-consumption/4-cost-based-vacuum-delay.md) + + [后端写进程](/reference-guide/guc-parameters/4-resource-consumption/5-background-writer.md) + + [异步IO](/reference-guide/guc-parameters/4-resource-consumption/6-asynchronous-io-operations.md) + + 预写式日志 + + [设置](/reference-guide/guc-parameters/6-write-ahead-log/1-settings.md) + + [检查点](/reference-guide/guc-parameters/6-write-ahead-log/2-checkpoints.md) + + [日志回放](/reference-guide/guc-parameters/6-write-ahead-log/3-log-replay.md) + + [归档](/reference-guide/guc-parameters/6-write-ahead-log/4-archiving.md) + + 双机复制 + + [发送端服务器](/reference-guide/guc-parameters/7-ha-replication/1-sending-server.md) + + [主服务器](/reference-guide/guc-parameters/7-ha-replication/2-primary-server.md) + + [备服务器](/reference-guide/guc-parameters/7-ha-replication/3-standby-server.md) + + [内存表](/reference-guide/guc-parameters/8-mot.md) + + 查询规划 + + [介绍](/reference-guide/guc-parameters/9-query-planning/introduction-to-query-planning.md) + + [优化器方法配置](/reference-guide/guc-parameters/9-query-planning/1-optimizer-method-configuration.md) + + [优化器开销常量](/reference-guide/guc-parameters/9-query-planning/2-optimizer-cost-constants.md) + + [基因查询优化器](/reference-guide/guc-parameters/9-query-planning/3-genetic-query-optimizer.md) + + [其他优化器选项](/reference-guide/guc-parameters/9-query-planning/4-other-optimizer-options.md) + + 错误报告和日志 + + [记录日志的位置](/reference-guide/guc-parameters/10-error-reporting-and-logging/1-logging-destination.md) + + [记录日志的时间](/reference-guide/guc-parameters/10-error-reporting-and-logging/2-logging-time.md) + + [记录日志的内容](/reference-guide/guc-parameters/10-error-reporting-and-logging/3-logging-content.md) + + [使用CSV格式写日志](/reference-guide/guc-parameters/10-error-reporting-and-logging/4-using-csv-log-output.md) + + [告警检测](/reference-guide/guc-parameters/11-alarm-detection.md) + + 运行时统计 + + [查询和索引统计收集器](/reference-guide/guc-parameters/12-statistics-during-the-database-running/1-query-and-index-statistics-collector.md) + + [性能统计](/reference-guide/guc-parameters/12-statistics-during-the-database-running/2-performance-statistics.md) + + [负载管理](/reference-guide/guc-parameters/13-load-management.md) + + [自动清理](/reference-guide/guc-parameters/14-automatic-vacuuming.md) + + 客户端连接缺省设置 + + [语句行为](/reference-guide/guc-parameters/15-default-settings-of-client-connection/1-statement-behavior.md) + + [区域和格式化](/reference-guide/guc-parameters/15-default-settings-of-client-connection/2-zone-and-formatting.md) + + [其他缺省](/reference-guide/guc-parameters/15-default-settings-of-client-connection/3-other-default-parameters.md) + + [锁管理](/reference-guide/guc-parameters/16-lock-management.md) + + 版本和平台兼容性 + + [历史版本兼容性](/reference-guide/guc-parameters/17-version-and-platform-compatibility/1-compatibility-with-earlier-versions.md) + + [平台和客户端兼容性](/reference-guide/guc-parameters/17-version-and-platform-compatibility/2-platform-and-client-compatibility.md) + + [容错性](/reference-guide/guc-parameters/18-fault-tolerance.md) + + [连接池参数](/reference-guide/guc-parameters/19-connection-pool-parameters.md) + + [MogDB事务](/reference-guide/guc-parameters/20-MogDB-transaction.md) + + [开发人员选项](/reference-guide/guc-parameters/21-developer-options.md) + + 审计 + + [审计开关](/reference-guide/guc-parameters/22-auditing/1-audit-switch.md) + + [用户和权限审计](/reference-guide/guc-parameters/22-auditing/2-user-and-permission-audit.md) + + [操作审计](/reference-guide/guc-parameters/22-auditing/3-operation-audit.md) + + CM相关参数 + + [cm_agent参数](/reference-guide/guc-parameters/cm-parameters/cm_agent.md) + + [cm_server参数](/reference-guide/guc-parameters/cm-parameters/cm_server.md) + + [SQL模式](/reference-guide/guc-parameters/SQL-mode.md) + + [升级参数](/reference-guide/guc-parameters/23-upgrade-parameters.md) + + [其他选项](/reference-guide/guc-parameters/24-miscellaneous-parameters.md) + + [等待事件](/reference-guide/guc-parameters/25-wait-events.md) + + [Query](/reference-guide/guc-parameters/26-query.md) + + [系统性能快照](/reference-guide/guc-parameters/27-system-performance-snapshot.md) + + [安全配置](/reference-guide/guc-parameters/27.1-security-configuration.md) + + [全局临时表](/reference-guide/guc-parameters/29-global-temporary-table.md) + + [HyperLogLog](/reference-guide/guc-parameters/29.1-HyperLogLog.md) + + [定时任务](/reference-guide/guc-parameters/31-scheduled-task.md) + + [线程池](/reference-guide/guc-parameters/32-thread-pool.md) + + [用户自定义函数](/reference-guide/guc-parameters/33-user-defined-functions.md) + + [备份恢复](/reference-guide/guc-parameters/34-backup-and-restoration.md) + + [Undo](/reference-guide/guc-parameters/35-undo.md) + + [DCF参数设置](/reference-guide/guc-parameters/36-DCF-parameters-settings.md) + + [闪回相关参数](/reference-guide/guc-parameters/37-flashback.md) + + [回滚相关参数](/reference-guide/guc-parameters/38-rollback-parameters.md) + + [预留参数](/reference-guide/guc-parameters/39-reserved-parameters.md) + + [AI特性](/reference-guide/guc-parameters/40-AI-features.md) + + [Global SysCache参数](/reference-guide/guc-parameters/global-syscache-parameters.md) + + [附录](/reference-guide/guc-parameters/30-appendix.md) + + Schema + + Information Schema + + [概述](/reference-guide/schema/information-schema/1-information-schema-overview.md) + + [_PG_FOREIGN_DATA_WRAPPERS](/reference-guide/schema/information-schema/2-_PG_FOREIGN_DATA_WRAPPERS.md) + + [_PG_FOREIGN_SERVERS](/reference-guide/schema/information-schema/3-_PG_FOREIGN_SERVERS.md) + + [_PG_FOREIGN_TABLE_COLUMNS](/reference-guide/schema/information-schema/4-_PG_FOREIGN_TABLE_COLUMNS.md) + + [_PG_FOREIGN_TABLES](/reference-guide/schema/information-schema/5-_PG_FOREIGN_TABLES.md) + + [_PG_USER_MAPPINGS](/reference-guide/schema/information-schema/6-_PG_USER_MAPPINGS.md) + + [INFORMATION_SCHEMA_CATALOG_NAME](/reference-guide/schema/information-schema/7-INFORMATION_SCHEMA_CATALOG_NAME.md) + + DBE_PERF + + [概述](/reference-guide/schema/DBE_PERF/DBE_PERF_overview.md) + + OS + + [OS_RUNTIME](/reference-guide/schema/DBE_PERF/os/OS_RUNTIME.md) + + [GLOBAL_OS_RUNTIME](/reference-guide/schema/DBE_PERF/os/GLOBAL_OS_RUNTIME.md) + + [OS_THREADS](/reference-guide/schema/DBE_PERF/os/OS_THREADS.md) + + [GLOBAL_OS_THREADS](/reference-guide/schema/DBE_PERF/os/GLOBAL_OS_THREADS.md) + + Instance + + [INSTANCE_TIME](/reference-guide/schema/DBE_PERF/instance/INSTANCE_TIME.md) + + [GLOBAL_INSTANCE_TIME](/reference-guide/schema/DBE_PERF/instance/GLOBAL_INSTANCE_TIME.md) + + Memory + + [MEMORY_NODE_DETAIL](/reference-guide/schema/DBE_PERF/memory/MEMORY_NODE_DETAIL.md) + + [GLOBAL_MEMORY_NODE_DETAIL](/reference-guide/schema/DBE_PERF/memory/GLOBAL_MEMORY_NODE_DETAIL.md) + + [GS_SHARED_MEMORY_DETAIL](/reference-guide/schema/DBE_PERF/memory/GS_SHARED_MEMORY_DETAIL.md) + + [GLOBAL_SHARED_MEMORY_DETAIL](/reference-guide/schema/DBE_PERF/memory/GLOBAL_SHARED_MEMORY_DETAIL.md) + + File + + [FILE_IOSTAT](/reference-guide/schema/DBE_PERF/file/FILE_IOSTAT.md) + + [SUMMARY_FILE_IOSTAT](/reference-guide/schema/DBE_PERF/file/SUMMARY_FILE_IOSTAT.md) + + [GLOBAL_FILE_IOSTAT](/reference-guide/schema/DBE_PERF/file/GLOBAL_FILE_IOSTAT.md) + + [FILE_REDO_IOSTAT](/reference-guide/schema/DBE_PERF/file/FILE_REDO_IOSTAT.md) + + [SUMMARY_FILE_REDO_IOSTAT](/reference-guide/schema/DBE_PERF/file/SUMMARY_FILE_REDO_IOSTAT.md) + + [GLOBAL_FILE_REDO_IOSTAT](/reference-guide/schema/DBE_PERF/file/GLOBAL_FILE_REDO_IOSTAT.md) + + [LOCAL_REL_IOSTAT](/reference-guide/schema/DBE_PERF/file/LOCAL_REL_IOSTAT.md) + + [GLOBAL_REL_IOSTAT](/reference-guide/schema/DBE_PERF/file/GLOBAL_REL_IOSTAT.md) + + [SUMMARY_REL_IOSTAT](/reference-guide/schema/DBE_PERF/file/SUMMARY_REL_IOSTAT.md) + + Object + + [STAT_USER_TABLES](/reference-guide/schema/DBE_PERF/object/STAT_USER_TABLES.md) + + [SUMMARY_STAT_USER_TABLES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_USER_TABLES.md) + + [GLOBAL_STAT_USER_TABLES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_USER_TABLES.md) + + [STAT_USER_INDEXES](/reference-guide/schema/DBE_PERF/object/STAT_USER_INDEXES.md) + + [SUMMARY_STAT_USER_INDEXES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_USER_INDEXES.md) + + [GLOBAL_STAT_USER_INDEXES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_USER_INDEXES.md) + + [STAT_SYS_TABLES](/reference-guide/schema/DBE_PERF/object/STAT_SYS_TABLES.md) + + [SUMMARY_STAT_SYS_TABLES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_SYS_TABLES.md) + + [GLOBAL_STAT_SYS_TABLES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_SYS_TABLES.md) + + [STAT_SYS_INDEXES](/reference-guide/schema/DBE_PERF/object/STAT_SYS_INDEXES.md) + + [SUMMARY_STAT_SYS_INDEXES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_SYS_INDEXES.md) + + [GLOBAL_STAT_SYS_INDEXES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_SYS_INDEXES.md) + + [STAT_ALL_TABLES](/reference-guide/schema/DBE_PERF/object/STAT_ALL_TABLES.md) + + [SUMMARY_STAT_ALL_TABLES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_ALL_TABLES.md) + + [GLOBAL_STAT_ALL_TABLES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_ALL_TABLES.md) + + [STAT_ALL_INDEXES](/reference-guide/schema/DBE_PERF/object/STAT_ALL_INDEXES.md) + + [SUMMARY_STAT_ALL_INDEXES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_ALL_INDEXES.md) + + [GLOBAL_STAT_ALL_INDEXES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_ALL_INDEXES.md) + + [STAT_DATABASE](/reference-guide/schema/DBE_PERF/object/STAT_DATABASE.md) + + [SUMMARY_STAT_DATABASE](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_DATABASE.md) + + [GLOBAL_STAT_DATABASE](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_DATABASE.md) + + [STAT_DATABASE_CONFLICTS](/reference-guide/schema/DBE_PERF/object/STAT_DATABASE_CONFLICTS.md) + + [SUMMARY_STAT_DATABASE_CONFLICTS](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_DATABASE_CONFLICTS.md) + + [GLOBAL_STAT_DATABASE_CONFLICTS](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_DATABASE_CONFLICTS.md) + + [STAT_XACT_ALL_TABLES](/reference-guide/schema/DBE_PERF/object/STAT_XACT_ALL_TABLES.md) + + [SUMMARY_STAT_XACT_ALL_TABLES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_XACT_ALL_TABLES.md) + + [GLOBAL_STAT_XACT_ALL_TABLES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_XACT_ALL_TABLES.md) + + [STAT_XACT_SYS_TABLES](/reference-guide/schema/DBE_PERF/object/STAT_XACT_SYS_TABLES.md) + + [SUMMARY_STAT_XACT_SYS_TABLES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_XACT_SYS_TABLES.md) + + [GLOBAL_STAT_XACT_SYS_TABLES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_XACT_SYS_TABLES.md) + + [STAT_XACT_USER_TABLES](/reference-guide/schema/DBE_PERF/object/STAT_XACT_USER_TABLES.md) + + [SUMMARY_STAT_XACT_USER_TABLES](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_XACT_USER_TABLES.md) + + [GLOBAL_STAT_XACT_USER_TABLES](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_XACT_USER_TABLES.md) + + [STAT_XACT_USER_FUNCTIONS](/reference-guide/schema/DBE_PERF/object/STAT_XACT_USER_FUNCTIONS.md) + + [SUMMARY_STAT_XACT_USER_FUNCTIONS](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_XACT_USER_FUNCTIONS.md) + + [GLOBAL_STAT_XACT_USER_FUNCTIONS](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_XACT_USER_FUNCTIONS.md) + + [STAT_BAD_BLOCK](/reference-guide/schema/DBE_PERF/object/STAT_BAD_BLOCK.md) + + [SUMMARY_STAT_BAD_BLOCK](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_BAD_BLOCK.md) + + [GLOBAL_STAT_BAD_BLOCK](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_BAD_BLOCK.md) + + [STAT_USER_FUNCTIONS](/reference-guide/schema/DBE_PERF/object/STAT_USER_FUNCTIONS.md) + + [SUMMARY_STAT_USER_FUNCTIONS](/reference-guide/schema/DBE_PERF/object/SUMMARY_STAT_USER_FUNCTIONS.md) + + [GLOBAL_STAT_USER_FUNCTIONS](/reference-guide/schema/DBE_PERF/object/GLOBAL_STAT_USER_FUNCTIONS.md) + + Workload + + [WORKLOAD_SQL_COUNT](/reference-guide/schema/DBE_PERF/workload/WORKLOAD_SQL_COUNT.md) + + [SUMMARY_WORKLOAD_SQL_COUNT](/reference-guide/schema/DBE_PERF/workload/SUMMARY_WORKLOAD_SQL_COUNT.md) + + [WORKLOAD_TRANSACTION](/reference-guide/schema/DBE_PERF/workload/WORKLOAD_TRANSACTION.md) + + [SUMMARY_WORKLOAD_TRANSACTION](/reference-guide/schema/DBE_PERF/workload/SUMMARY_WORKLOAD_TRANSACTION.md) + + [GLOBAL_WORKLOAD_TRANSACTION](/reference-guide/schema/DBE_PERF/workload/GLOBAL_WORKLOAD_TRANSACTION.md) + + [WORKLOAD_SQL_ELAPSE_TIME](/reference-guide/schema/DBE_PERF/workload/WORKLOAD_SQL_ELAPSE_TIME.md) + + [SUMMARY_WORKLOAD_SQL_ELAPSE_TIME](/reference-guide/schema/DBE_PERF/workload/SUMMARY_WORKLOAD_SQL_ELAPSE_TIME.md) + + [USER_TRANSACTION](/reference-guide/schema/DBE_PERF/workload/USER_TRANSACTION.md) + + [GLOBAL_USER_TRANSACTION](/reference-guide/schema/DBE_PERF/workload/GLOBAL_USER_TRANSACTION.md) + + Session/Thread + + [SESSION_STAT](/reference-guide/schema/DBE_PERF/session-thread/SESSION_STAT.md) + + [GLOBAL_SESSION_STAT](/reference-guide/schema/DBE_PERF/session-thread/GLOBAL_SESSION_STAT.md) + + [SESSION_TIME](/reference-guide/schema/DBE_PERF/session-thread/SESSION_TIME.md) + + [GLOBAL_SESSION_TIME](/reference-guide/schema/DBE_PERF/session-thread/GLOBAL_SESSION_TIME.md) + + [SESSION_MEMORY](/reference-guide/schema/DBE_PERF/session-thread/SESSION_MEMORY.md) + + [GLOBAL_SESSION_MEMORY](/reference-guide/schema/DBE_PERF/session-thread/GLOBAL_SESSION_MEMORY.md) + + [SESSION_MEMORY_DETAIL](/reference-guide/schema/DBE_PERF/session-thread/SESSION_MEMORY_DETAIL.md) + + [GLOBAL_SESSION_MEMORY_DETAIL](/reference-guide/schema/DBE_PERF/session-thread/GLOBAL_SESSION_MEMORY_DETAIL.md) + + [SESSION_STAT_ACTIVITY](/reference-guide/schema/DBE_PERF/session-thread/SESSION_STAT_ACTIVITY.md) + + [GLOBAL_SESSION_STAT_ACTIVITY](/reference-guide/schema/DBE_PERF/session-thread/GLOBAL_SESSION_STAT_ACTIVITY.md) + + [THREAD_WAIT_STATUS](/reference-guide/schema/DBE_PERF/session-thread/THREAD_WAIT_STATUS.md) + + [GLOBAL_THREAD_WAIT_STATUS](/reference-guide/schema/DBE_PERF/session-thread/GLOBAL_THREAD_WAIT_STATUS.md) + + [LOCAL_THREADPOOL_STATUS](/reference-guide/schema/DBE_PERF/session-thread/LOCAL_THREADPOOL_STATUS.md) + + [GLOBAL_THREADPOOL_STATUS](/reference-guide/schema/DBE_PERF/session-thread/GLOBAL_THREADPOOL_STATUS.md) + + [SESSION_CPU_RUNTIME](/reference-guide/schema/DBE_PERF/session-thread/SESSION_CPU_RUNTIME.md) + + [SESSION_MEMORY_RUNTIME](/reference-guide/schema/DBE_PERF/session-thread/SESSION_MEMORY_RUNTIME.md) + + [STATEMENT_IOSTAT_COMPLEX_RUNTIME](/reference-guide/schema/DBE_PERF/session-thread/STATEMENT_IOSTAT_COMPLEX_RUNTIME.md) + + [LOCAL_ACTIVE_SESSION](/reference-guide/schema/DBE_PERF/session-thread/LOCAL_ACTIVE_SESSION.md) + + Transaction + + [TRANSACTIONS_PREPARED_XACTS](/reference-guide/schema/DBE_PERF/transaction/TRANSACTIONS_PREPARED_XACTS.md) + + [SUMMARY_TRANSACTIONS_PREPARED_XACTS](/reference-guide/schema/DBE_PERF/transaction/SUMMARY_TRANSACTIONS_PREPARED_XACTS.md) + + [GLOBAL_TRANSACTIONS_PREPARED_XACTS](/reference-guide/schema/DBE_PERF/transaction/GLOBAL_TRANSACTIONS_PREPARED_XACTS.md) + + [TRANSACTIONS_RUNNING_XACTS](/reference-guide/schema/DBE_PERF/transaction/TRANSACTIONS_RUNNING_XACTS.md) + + [SUMMARY_TRANSACTIONS_RUNNING_XACTS](/reference-guide/schema/DBE_PERF/transaction/SUMMARY_TRANSACTIONS_RUNNING_XACTS.md) + + [GLOBAL_TRANSACTIONS_RUNNING_XACTS](/reference-guide/schema/DBE_PERF/transaction/GLOBAL_TRANSACTIONS_RUNNING_XACTS.md) + + Query + + [STATEMENT](/reference-guide/schema/DBE_PERF/query/STATEMENT.md) + + [SUMMARY_STATEMENT](/reference-guide/schema/DBE_PERF/query/SUMMARY_STATEMENT.md) + + [STATEMENT_COUNT](/reference-guide/schema/DBE_PERF/query/STATEMENT_COUNT.md) + + [GLOBAL_STATEMENT_COUNT](/reference-guide/schema/DBE_PERF/query/GLOBAL_STATEMENT_COUNT.md) + + [SUMMARY_STATEMENT_COUNT](/reference-guide/schema/DBE_PERF/query/SUMMARY_STATEMENT_COUNT.md) + + [GLOBAL_STATEMENT_COMPLEX_HISTORY](/reference-guide/schema/DBE_PERF/query/GLOBAL_STATEMENT_COMPLEX_HISTORY.md) + + [GLOBAL_STATEMENT_COMPLEX_HISTORY_TABLE](/reference-guide/schema/DBE_PERF/query/GLOBAL_STATEMENT_COMPLEX_HISTORY_TABLE.md) + + [GLOBAL_STATEMENT_COMPLEX_RUNTIME](/reference-guide/schema/DBE_PERF/query/GLOBAL_STATEMENT_COMPLEX_RUNTIME.md) + + [STATEMENT_RESPONSETIME_PERCENTILE](/reference-guide/schema/DBE_PERF/query/STATEMENT_RESPONSETIME_PERCENTILE.md) + + [STATEMENT_USER_COMPLEX_HISTORY](/reference-guide/schema/DBE_PERF/query/STATEMENT_USER_COMPLEX_HISTORY.md) + + [STATEMENT_COMPLEX_RUNTIME](/reference-guide/schema/DBE_PERF/query/STATEMENT_COMPLEX_RUNTIME.md) + + [STATEMENT_COMPLEX_HISTORY_TABLE](/reference-guide/schema/DBE_PERF/query/STATEMENT_COMPLEX_HISTORY_TABLE.md) + + [STATEMENT_COMPLEX_HISTORY](/reference-guide/schema/DBE_PERF/query/STATEMENT_COMPLEX_HISTORY.md) + + [STATEMENT_WLMSTAT_COMPLEX_RUNTIME](/reference-guide/schema/DBE_PERF/query/STATEMENT_WLMSTAT_COMPLEX_RUNTIME.md) + + [STATEMENT_HISTORY](/reference-guide/schema/DBE_PERF/query/STATEMENT_HISTORY_1.md) + + Cache/IO + + [STATIO_USER_TABLES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_USER_TABLES.md) + + [SUMMARY_STATIO_USER_TABLES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_USER_TABLES.md) + + [GLOBAL_STATIO_USER_TABLES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_USER_TABLES.md) + + [STATIO_USER_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_USER_INDEXES.md) + + [SUMMARY_STATIO_USER_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_USER_INDEXES.md) + + [GLOBAL_STATIO_USER_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_USER_INDEXES.md) + + [STATIO_USER_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_USER_SEQUENCES.md) + + [SUMMARY_STATIO_USER_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_USER_SEQUENCES.md) + + [GLOBAL_STATIO_USER_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_USER_SEQUENCES.md) + + [STATIO_SYS_TABLES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_SYS_TABLES.md) + + [SUMMARY_STATIO_SYS_TABLES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_SYS_TABLES.md) + + [GLOBAL_STATIO_SYS_TABLES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_SYS_TABLES.md) + + [STATIO_SYS_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_SYS_INDEXES.md) + + [SUMMARY_STATIO_SYS_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_SYS_INDEXES.md) + + [GLOBAL_STATIO_SYS_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_SYS_INDEXES.md) + + [STATIO_SYS_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_SYS_SEQUENCES.md) + + [SUMMARY_STATIO_SYS_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_SYS_SEQUENCES.md) + + [GLOBAL_STATIO_SYS_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_SYS_SEQUENCES.md) + + [STATIO_ALL_TABLES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_ALL_TABLES.md) + + [SUMMARY_STATIO_ALL_TABLES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_ALL_TABLES.md) + + [GLOBAL_STATIO_ALL_TABLES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_ALL_TABLES.md) + + [STATIO_ALL_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_ALL_INDEXES.md) + + [SUMMARY_STATIO_ALL_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_ALL_INDEXES.md) + + [GLOBAL_STATIO_ALL_INDEXES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_ALL_INDEXES.md) + + [STATIO_ALL_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/STATIO_ALL_SEQUENCES.md) + + [SUMMARY_STATIO_ALL_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/SUMMARY_STATIO_ALL_SEQUENCES.md) + + [GLOBAL_STATIO_ALL_SEQUENCES](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STATIO_ALL_SEQUENCES.md) + + [GLOBAL_STAT_DB_CU](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STAT_DB_CU.md) + + [GLOBAL_STAT_SESSION_CU](/reference-guide/schema/DBE_PERF/cache-io/GLOBAL_STAT_SESSION_CU.md) + + Utility + + [REPLICATION_STAT](/reference-guide/schema/DBE_PERF/utility/REPLICATION_STAT.md) + + [GLOBAL_REPLICATION_STAT](/reference-guide/schema/DBE_PERF/utility/GLOBAL_REPLICATION_STAT.md) + + [REPLICATION_SLOTS](/reference-guide/schema/DBE_PERF/utility/REPLICATION_SLOTS.md) + + [GLOBAL_REPLICATION_SLOTS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_REPLICATION_SLOTS.md) + + [BGWRITER_STAT](/reference-guide/schema/DBE_PERF/utility/BGWRITER_STAT.md) + + [GLOBAL_BGWRITER_STAT](/reference-guide/schema/DBE_PERF/utility/GLOBAL_BGWRITER_STAT.md) + + [GLOBAL_CKPT_STATUS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_CKPT_STATUS.md) + + [GLOBAL_DOUBLE_WRITE_STATUS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_DOUBLE_WRITE_STATUS.md) + + [GLOBAL_PAGEWRITER_STATUS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_PAGEWRITER_STATUS.md) + + [GLOBAL_RECORD_RESET_TIME](/reference-guide/schema/DBE_PERF/utility/GLOBAL_RECORD_RESET_TIME.md) + + [GLOBAL_REDO_STATUS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_REDO_STATUS.md) + + [GLOBAL_RECOVERY_STATUS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_RECOVERY_STATUS.md) + + [CLASS_VITAL_INFO](/reference-guide/schema/DBE_PERF/utility/CLASS_VITAL_INFO.md) + + [USER_LOGIN](/reference-guide/schema/DBE_PERF/utility/USER_LOGIN.md) + + [SUMMARY_USER_LOGIN](/reference-guide/schema/DBE_PERF/utility/SUMMARY_USER_LOGIN.md) + + [GLOBAL_GET_BGWRITER_STATUS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_GET_BGWRITER_STATUS.md) + + [GLOBAL_SINGLE_FLUSH_DW_STATUS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_SINGLE_FLUSH_DW_STATUS.md) + + [GLOBAL_CANDIDATE_STATUS](/reference-guide/schema/DBE_PERF/utility/GLOBAL_CANDIDATE_STATUS.md) + + Lock + + [LOCKS](/reference-guide/schema/DBE_PERF/lock/LOCKS.md) + + [GLOBAL_LOCKS](/reference-guide/schema/DBE_PERF/lock/GLOBAL_LOCKS.md) + + Wait Events + + [WAIT_EVENTS](/reference-guide/schema/DBE_PERF/wait-events/WAIT_EVENTS.md) + + [GLOBAL_WAIT_EVENTS](/reference-guide/schema/DBE_PERF/wait-events/GLOBAL_WAIT_EVENTS.md) + + Configuration + + [CONFIG_SETTINGS](/reference-guide/schema/DBE_PERF/configuration/CONFIG_SETTINGS.md) + + [GLOBAL_CONFIG_SETTINGS](/reference-guide/schema/DBE_PERF/configuration/GLOBAL_CONFIG_SETTINGS.md) + + Operator + + [OPERATOR_HISTORY_TABLE](/reference-guide/schema/DBE_PERF/operator/OPERATOR_HISTORY_TABLE.md) + + [OPERATOR_HISTORY](/reference-guide/schema/DBE_PERF/operator/OPERATOR_HISTORY.md) + + [OPERATOR_RUNTIME](/reference-guide/schema/DBE_PERF/operator/OPERATOR_RUNTIME.md) + + [GLOBAL_OPERATOR_HISTORY](/reference-guide/schema/DBE_PERF/operator/GLOBAL_OPERATOR_HISTORY.md) + + [GLOBAL_OPERATOR_HISTORY_TABLE](/reference-guide/schema/DBE_PERF/operator/GLOBAL_OPERATOR_HISTORY_TABLE.md) + + [GLOBAL_OPERATOR_RUNTIME](/reference-guide/schema/DBE_PERF/operator/GLOBAL_OPERATOR_RUNTIME.md) + + Workload Manager + + [WLM_USER_RESOURCE_CONFIG](/reference-guide/schema/DBE_PERF/workload-manager/WLM_USER_RESOURCE_CONFIG.md) + + [WLM_USER_RESOURCE_RUNTIME](/reference-guide/schema/DBE_PERF/workload-manager/WLM_USER_RESOURCE_RUNTIME.md) + + Global Plancache + + [概述](/reference-guide/schema/DBE_PERF/global-plancache/global-plancache-overview.md) + + [GLOBAL_PLANCACHE_STATUS](/reference-guide/schema/DBE_PERF/global-plancache/GLOBAL_PLANCACHE_STATUS.md) + + [GLOBAL_PLANCACHE_CLEAN](/reference-guide/schema/DBE_PERF/global-plancache/GLOBAL_PLANCACHE_CLEAN.md) + + RTO + + [global_rto_status](/reference-guide/schema/DBE_PERF/rto/global_rto_status.md) + + DBE_PLDEBUGGER Schema + + [DBE_PLDEBUGGER Schema概述](/reference-guide/schema/DBE_PLDEBUGGER-schema/overview-of-DBE_PLDEBUGGER-schema.md) + + [DBE_PLDEBUGGER.turn_on](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.turn_on.md) + + [DBE_PLDEBUGGER.turn_off](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.turn_off.md) + + [DBE_PLDEBUGGER.local_debug_server_info](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.local_debug_server_info.md) + + [DBE_PLDEBUGGER.attach](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.attach.md) + + [DBE_PLDEBUGGER.info_locals](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.info_locals.md) + + [DBE_PLDEBUGGER.next](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.next.md) + + [DBE_PLDEBUGGER.continue](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.continue.md) + + [DBE_PLDEBUGGER.abort](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.abort.md) + + [DBE_PLDEBUGGER.print_var](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.print_var.md) + + [DBE_PLDEBUGGER.info_code](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.info_code.md) + + [DBE_PLDEBUGGER.step](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.step.md) + + [DBE_PLDEBUGGER.add_breakpoint](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.add_breakpoint.md) + + [DBE_PLDEBUGGER.delete_breakpoint](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.delete_breakpoint.md) + + [DBE_PLDEBUGGER.info_breakpoints](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.info_breakpoints.md) + + [DBE_PLDEBUGGER.backtrace](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.backtrace.md) + + [DBE_PLDEBUGGER.disable_breakpoint](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.disable_breakpoint.md) + + [DBE_PLDEBUGGER.enable_breakpoint](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.enable_breakpoint.md) + + [DBE_PLDEBUGGER.finish](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.finish.md) + + [DBE_PLDEBUGGER.set_var](/reference-guide/schema/DBE_PLDEBUGGER-schema/DBE_PLDEBUGGER.set_var.md) + + DB4AI Schema + + [DB4AI Schema概述](/reference-guide/schema/DB4AI-schema/overview-of-DB4AI-schema.md) + + [DB4AI.SNAPSHOT](/reference-guide/schema/DB4AI-schema/DB4AI.SNAPSHOT.md) + + [DB4AI.CREATE_SNAPSHOT](/reference-guide/schema/DB4AI-schema/DB4AI.CREATE_SNAPSHOT.md) + + [DB4AI.CREATE_SNAPSHOT_INTERNAL](/reference-guide/schema/DB4AI-schema/DB4AI.CREATE_SNAPSHOT_INTERNAL.md) + + [DB4AI.PREPARE_SNAPSHOT](/reference-guide/schema/DB4AI-schema/DB4AI.PREPARE_SNAPSHOT.md) + + [DB4AI.PREPARE_SNAPSHOT_INTERNAL](/reference-guide/schema/DB4AI-schema/DB4AI.PREPARE_SNAPSHOT_INTERNAL.md) + + [DB4AI.ARCHIVE_SNAPSHOT](/reference-guide/schema/DB4AI-schema/DB4AI.ARCHIVE_SNAPSHOT.md) + + [DB4AI.PUBLISH_SNAPSHOT](/reference-guide/schema/DB4AI-schema/DB4AI.PUBLISH_SNAPSHOT.md) + + [DB4AI.MANAGE_SNAPSHOT_INTERNAL](/reference-guide/schema/DB4AI-schema/DB4AI.MANAGE_SNAPSHOT_INTERNAL.md) + + [DB4AI.SAMPLE_SNAPSHOT](/reference-guide/schema/DB4AI-schema/DB4AI.SAMPLE_SNAPSHOT.md) + + [DB4AI.PURGE_SNAPSHOT](/reference-guide/schema/DB4AI-schema/DB4AI.PURGE_SNAPSHOT.md) + + [DB4AI.PURGE_SNAPSHOT_INTERNAL](/reference-guide/schema/DB4AI-schema/DB4AI.PURGE_SNAPSHOT_INTERNAL.md) + + [DBE_PLDEVELOPER](/reference-guide/schema/DBE_PLDEVELOPER/overview-of-DBE_PLDEVELOPER.md) + + [DBE_PLDEVELOPER.gs_source](/reference-guide/schema/DBE_PLDEVELOPER/DBE_PLDEVELOPER.gs_source.md) + + [DBE_PLDEVELOPER.gs_errors](/reference-guide/schema/DBE_PLDEVELOPER/DBE_PLDEVELOPER.gs_errors.md) + + 工具参考 + + [工具一览表](/reference-guide/tool-reference/tool-overview.md) + + [客户端工具](./reference-guide/tool-reference/client-tool/client-tool.md) + + [gsql](./reference-guide/tool-reference/client-tool/1-gsql.md) + + [gs_loader](./reference-guide/tool-reference/client-tool/2-gs_loader.md) + + 服务端工具 + + [gs_cgroup](/reference-guide/tool-reference/server-tools/0-gs_cgroup.md) + + [gs_check](/reference-guide/tool-reference/server-tools/1-gs_check.md) + + [gs_checkos](/reference-guide/tool-reference/server-tools/2-gs_checkos.md) + + [gs_checkperf](/reference-guide/tool-reference/server-tools/3-gs_checkperf.md) + + [gs_collector](/reference-guide/tool-reference/server-tools/4-gs_collector.md) + + [gs_dump](/reference-guide/tool-reference/server-tools/5-gs_dump.md) + + [gs_dumpall](/reference-guide/tool-reference/server-tools/6-gs_dumpall.md) + + [gs_guc](/reference-guide/tool-reference/server-tools/7-gs_guc.md) + + [gs_gucquery](/reference-guide/tool-reference/server-tools/7-gs_gucquery.md) + + [gs_encrypt](/reference-guide/tool-reference/server-tools/7.1-gs_encrypt.md) + + [gs_om](/reference-guide/tool-reference/server-tools/8-gs_om.md) + + [gs_plan_simulator](/reference-guide/tool-reference/server-tools/8.1-gs_plan_simulator.md) + + [gs_restore](/reference-guide/tool-reference/server-tools/9-gs_restore.md) + + [gs_ssh](/reference-guide/tool-reference/server-tools/10-gs_ssh.md) + + [gs_watch](/reference-guide/tool-reference/server-tools/gs_watch.md) + + 系统内部使用的工具 + + [gaussdb](/reference-guide/tool-reference/tools-used-in-the-internal-system/1-gaussdb.md) + + [gs_backup](/reference-guide/tool-reference/tools-used-in-the-internal-system/2-gs_backup.md) + + [gs_basebackup](/reference-guide/tool-reference/tools-used-in-the-internal-system/3-gs_basebackup.md) + + [gs_ctl](/reference-guide/tool-reference/tools-used-in-the-internal-system/4-gs_ctl.md) + + [gs_initdb](/reference-guide/tool-reference/tools-used-in-the-internal-system/5-gs_initdb.md) + + [gs_install](/reference-guide/tool-reference/tools-used-in-the-internal-system/6-gs_install.md) + + [gs_install_plugin](/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_install_plugin.md) + + [gs_install_plugin_local](/reference-guide/tool-reference/tools-used-in-the-internal-system/gs_install_plugin_local.md) + + [gs_preinstall](/reference-guide/tool-reference/tools-used-in-the-internal-system/8-gs_preinstall.md) + + [gs_sshexkey](/reference-guide/tool-reference/tools-used-in-the-internal-system/9-gs_sshexkey.md) + + [gs_tar](/reference-guide/tool-reference/tools-used-in-the-internal-system/10-gs_tar.md) + + [gs_uninstall](/reference-guide/tool-reference/tools-used-in-the-internal-system/11-gs_uninstall.md) + + [gs_upgradectl](/reference-guide/tool-reference/tools-used-in-the-internal-system/12-gs_upgradectl.md) + + [gs_expansion](/reference-guide/tool-reference/tools-used-in-the-internal-system/13-gs_expansion.md) + + [gs_dropnode](/reference-guide/tool-reference/tools-used-in-the-internal-system/14-gs_dropnode.md) + + [gs_probackup](/reference-guide/tool-reference/tools-used-in-the-internal-system/15-gs_probackup.md) + + [gstrace](/reference-guide/tool-reference/tools-used-in-the-internal-system/16-gstrace.md) + + [kdb5_util](/reference-guide/tool-reference/tools-used-in-the-internal-system/17-kdb5_util.md) + + [kadmin.local](/reference-guide/tool-reference/tools-used-in-the-internal-system/18-kadmin-local.md) + + [kinit](/reference-guide/tool-reference/tools-used-in-the-internal-system/19-kinit.md) + + [klist](/reference-guide/tool-reference/tools-used-in-the-internal-system/20-klist.md) + + [krb5kdc](/reference-guide/tool-reference/tools-used-in-the-internal-system/21-krb5kdc.md) + + [kdestroy](/reference-guide/tool-reference/tools-used-in-the-internal-system/22-kdestroy.md) + + [pg_config](/reference-guide/tool-reference/tools-used-in-the-internal-system/23-pg_config.md) + + [pg_controldata](/reference-guide/tool-reference/tools-used-in-the-internal-system/24-pg_controldata.md) + + [pg_recvlogical](/reference-guide/tool-reference/tools-used-in-the-internal-system/24.1-pg_recvlogical.md) + + [pg_resetxlog](/reference-guide/tool-reference/tools-used-in-the-internal-system/25-pg_resetxlog.md) + + [pg_archivecleanup](/reference-guide/tool-reference/tools-used-in-the-internal-system/26-pg_archivecleanup.md) + + [pssh](/reference-guide/tool-reference/tools-used-in-the-internal-system/27-pssh.md) + + [pscp](/reference-guide/tool-reference/tools-used-in-the-internal-system/28-pscp.md) + + [transfer.py](/reference-guide/tool-reference/tools-used-in-the-internal-system/29-transfer.py.md) + + [统一数据库管理工具](/reference-guide/tool-reference/unified-database-management-tool.md) + + [FAQ](/reference-guide/tool-reference/FAQ.md) + + [MogDB可运行脚本功能说明](/reference-guide/tool-reference/functions-of-mogdb-executable-scripts.md) + + [gs_collector工具支持收集的系统表和视图列表](/reference-guide/tool-reference/system-catalogs-and-views-supported-by-gs_collector.md) + + 插件 + + [dblink](/reference-guide/oracle-plugins/dblink-user-guide.md) + + [orafce](/reference-guide/oracle-plugins/orafce-user-guide.md) + + [pg_bulkload](/reference-guide/oracle-plugins/pg_bulkload-user-guide.md) + + [pg_prewarm](/reference-guide/oracle-plugins/pg_prewarm-user-guide.md) + + [pg_repack](/reference-guide/oracle-plugins/pg_repack-user-guide.md) + + [pg_trgm](/reference-guide/oracle-plugins/pg_trgm-user-guide.md) + + [wal2json](/reference-guide/oracle-plugins/wal2json-user-guide.md) + + 数据库报错信息 + + [SQL标准错误码说明](/reference-guide/error-code-reference/description-of-sql-error-codes.md) + + [第三方库错误码说明](/reference-guide/error-code-reference/third-party-library-error-codes.md) + + [GAUSS-00001 - GAUSS-00100](/reference-guide/error-code-reference/1-GAUSS-00001-GAUSS-00100.md) + + [GAUSS-00101 - GAUSS-00200](/reference-guide/error-code-reference/2-GAUSS-00101-GAUSS-00200.md) + + [GAUSS 00201 - GAUSS 00300](/reference-guide/error-code-reference/3-GAUSS-00201-GAUSS-00300.md) + + [GAUSS 00301 - GAUSS 00400](/reference-guide/error-code-reference/4-GAUSS-00301-GAUSS-00400.md) + + [GAUSS 00401 - GAUSS 00500](/reference-guide/error-code-reference/5-GAUSS-00401-GAUSS-00500.md) + + [GAUSS 00501 - GAUSS 00600](/reference-guide/error-code-reference/6-GAUSS-00501-GAUSS-00600.md) + + [GAUSS 00601 - GAUSS 00700](/reference-guide/error-code-reference/7-GAUSS-00601-GAUSS-00700.md) + + [GAUSS 00701 - GAUSS 00800](/reference-guide/error-code-reference/8-GAUSS-00701-GAUSS-00800.md) + + [GAUSS 00801 - GAUSS 00900](/reference-guide/error-code-reference/9-GAUSS-00801-GAUSS-00900.md) + + [GAUSS 00901 - GAUSS 01000](/reference-guide/error-code-reference/10-GAUSS-00901-GAUSS-01000.md) + + [GAUSS 01001 - GAUSS 01100](/reference-guide/error-code-reference/11-GAUSS-01001-GAUSS-01100.md) + + [GAUSS 01101 - GAUSS 01200](/reference-guide/error-code-reference/12-GAUSS-01101-GAUSS-01200.md) + + [GAUSS 01201 - GAUSS 01300](/reference-guide/error-code-reference/13-GAUSS-01201-GAUSS-01300.md) + + [GAUSS 01301 - GAUSS 01400](/reference-guide/error-code-reference/14-GAUSS-01301-GAUSS-01400.md) + + [GAUSS 01401 - GAUSS 01500](/reference-guide/error-code-reference/15-GAUSS-01401-GAUSS-01500.md) + + [GAUSS 01501 - GAUSS 01600](/reference-guide/error-code-reference/16-GAUSS-01501-GAUSS-01600.md) + + [GAUSS 01601 - GAUSS 01700](/reference-guide/error-code-reference/17-GAUSS-01601-GAUSS-01700.md) + + [GAUSS 01701 - GAUSS 01800](/reference-guide/error-code-reference/18-GAUSS-01701-GAUSS-01800.md) + + [GAUSS 01801 - GAUSS 01900](/reference-guide/error-code-reference/19-GAUSS-01801-GAUSS-01900.md) + + [GAUSS 01901 - GAUSS 02000](/reference-guide/error-code-reference/20-GAUSS-01901-GAUSS-02000.md) + + [GAUSS 02001 - GAUSS 02100](/reference-guide/error-code-reference/21-GAUSS-02001-GAUSS-02100.md) + + [GAUSS 02101 - GAUSS 02200](/reference-guide/error-code-reference/22-GAUSS-02101-GAUSS-02200.md) + + [GAUSS 02201 - GAUSS 02300](/reference-guide/error-code-reference/23-GAUSS-02201-GAUSS-02300.md) + + [GAUSS 02301 - GAUSS 02400](/reference-guide/error-code-reference/24-GAUSS-02301-GAUSS-02400.md) + + [GAUSS 02401 - GAUSS 02500](/reference-guide/error-code-reference/25-GAUSS-02401-GAUSS-02500.md) + + [GAUSS 02501 - GAUSS 02600](/reference-guide/error-code-reference/26-GAUSS-02501-GAUSS-02600.md) + + [GAUSS 02601 - GAUSS 02700](/reference-guide/error-code-reference/27-GAUSS-02601-GAUSS-02700.md) + + [GAUSS 02701 - GAUSS 02800](/reference-guide/error-code-reference/28-GAUSS-02701-GAUSS-02800.md) + + [GAUSS 02801 - GAUSS 02900](/reference-guide/error-code-reference/29-GAUSS-02801-GAUSS-02900.md) + + [GAUSS 02901 - GAUSS 03000](/reference-guide/error-code-reference/30-GAUSS-02901-GAUSS-03000.md) + + [GAUSS 03001 - GAUSS 03100](/reference-guide/error-code-reference/31-GAUSS-03001-GAUSS-03100.md) + + [GAUSS 03101 - GAUSS 03200](/reference-guide/error-code-reference/32-GAUSS-03101-GAUSS-03200.md) + + [GAUSS 03201 - GAUSS 03300](/reference-guide/error-code-reference/33-GAUSS-03201-GAUSS-03300.md) + + [GAUSS 03301 - GAUSS 03400](/reference-guide/error-code-reference/34-GAUSS-03301-GAUSS-03400.md) + + [GAUSS 03401 - GAUSS 03500](/reference-guide/error-code-reference/35-GAUSS-03401-GAUSS-03500.md) + + [GAUSS 03501 - GAUSS 03600](/reference-guide/error-code-reference/36-GAUSS-03501-GAUSS-03600.md) + + [GAUSS 03601 - GAUSS 03700](/reference-guide/error-code-reference/37-GAUSS-03601-GAUSS-03700.md) + + [GAUSS 03701 - GAUSS 03800](/reference-guide/error-code-reference/38-GAUSS-03701-GAUSS-03800.md) + + [GAUSS 03801 - GAUSS 03900](/reference-guide/error-code-reference/39-GAUSS-03801-GAUSS-03900.md) + + [GAUSS 03901 - GAUSS 04000](/reference-guide/error-code-reference/40-GAUSS-03901-GAUSS-04000.md) + + [GAUSS 04001 - GAUSS 04100](/reference-guide/error-code-reference/41-GAUSS-04001-GAUSS-04100.md) + + [GAUSS 04101 - GAUSS 04200](/reference-guide/error-code-reference/42-GAUSS-04101-GAUSS-04200.md) + + [GAUSS 04201 - GAUSS 04300](/reference-guide/error-code-reference/43-GAUSS-04201-GAUSS-04300.md) + + [GAUSS 04301 - GAUSS 04400](/reference-guide/error-code-reference/44-GAUSS-04301-GAUSS-04400.md) + + [GAUSS 04401 - GAUSS 04500](/reference-guide/error-code-reference/45-GAUSS-04401-GAUSS-04500.md) + + [GAUSS 04501 - GAUSS 04600](/reference-guide/error-code-reference/46-GAUSS-04501-GAUSS-04600.md) + + [GAUSS 04601 - GAUSS 04700](/reference-guide/error-code-reference/47-GAUSS-04601-GAUSS-04700.md) + + [GAUSS 04701 - GAUSS 04800](/reference-guide/error-code-reference/48-GAUSS-04701-GAUSS-04800.md) + + [GAUSS 04801 - GAUSS 04900](/reference-guide/error-code-reference/49-GAUSS-04801-GAUSS-04900.md) + + [GAUSS 04901 - GAUSS 05000](/reference-guide/error-code-reference/50-GAUSS-04901-GAUSS-05000.md) + + [GAUSS 05001 - GAUSS 05100](/reference-guide/error-code-reference/51-GAUSS-05001-GAUSS-05100.md) + + [GAUSS 05101 - GAUSS 05200](/reference-guide/error-code-reference/52-GAUSS-05101-GAUSS-05200.md) + + [GAUSS 05201 - GAUSS 05300](/reference-guide/error-code-reference/53-GAUSS-05201-GAUSS-05300.md) + + [GAUSS 05301 - GAUSS 05400](/reference-guide/error-code-reference/54-GAUSS-05301-GAUSS-05400.md) + + [GAUSS 05401 - GAUSS 05500](/reference-guide/error-code-reference/55-GAUSS-05401-GAUSS-05500.md) + + [GAUSS 05501 - GAUSS 05600](/reference-guide/error-code-reference/56-GAUSS-05501-GAUSS-05600.md) + + [GAUSS 05601 - GAUSS 05700](/reference-guide/error-code-reference/57-GAUSS-05601-GAUSS-05700.md) + + [GAUSS 05701 - GAUSS 05800](/reference-guide/error-code-reference/58-GAUSS-05701-GAUSS-05800.md) + + [GAUSS 05801 - GAUSS 05900](/reference-guide/error-code-reference/59-GAUSS-05801-GAUSS-05900.md) + + [GAUSS 05901 - GAUSS 06000](/reference-guide/error-code-reference/60-GAUSS-05901-GAUSS-06000.md) + + [GAUSS 06001 - GAUSS 06100](/reference-guide/error-code-reference/61-GAUSS-06001-GAUSS-06100.md) + + [GAUSS 06101 - GAUSS 06200](/reference-guide/error-code-reference/62-GAUSS-06101-GAUSS-06200.md) + + [GAUSS 06201 - GAUSS 06300](/reference-guide/error-code-reference/63-GAUSS-06201-GAUSS-06300.md) + + [GAUSS 06301 - GAUSS 06400](/reference-guide/error-code-reference/64-GAUSS-06301-GAUSS-06400.md) + + [GAUSS 06401 - GAUSS 06500](/reference-guide/error-code-reference/65-GAUSS-06401-GAUSS-06500.md) + + [GAUSS 06501 - GAUSS 06600](/reference-guide/error-code-reference/66-GAUSS-06501-GAUSS-06600.md) + + [GAUSS 06601 - GAUSS 06700](/reference-guide/error-code-reference/67-GAUSS-06601-GAUSS-06700.md) + + [GAUSS 06701 - GAUSS 06800](/reference-guide/error-code-reference/68-GAUSS-06701-GAUSS-06800.md) + + [GAUSS 06801 - GAUSS 06900](/reference-guide/error-code-reference/69-GAUSS-06801-GAUSS-06900.md) + + [GAUSS 06901 - GAUSS 07000](/reference-guide/error-code-reference/70-GAUSS-06901-GAUSS-07000.md) + + [GAUSS 07001 - GAUSS 07100](/reference-guide/error-code-reference/71-GAUSS-07001-GAUSS-07100.md) + + [GAUSS 07101 - GAUSS 07200](/reference-guide/error-code-reference/72-GAUSS-07101-GAUSS-07200.md) + + [GAUSS 07201 - GAUSS 07300](/reference-guide/error-code-reference/73-GAUSS-07201-GAUSS-07300.md) + + [GAUSS 07301 - GAUSS 07400](/reference-guide/error-code-reference/74-GAUSS-07301-GAUSS-07400.md) + + [GAUSS 07401 - GAUSS 07480](/reference-guide/error-code-reference/75-GAUSS-07401-GAUSS-07480.md) + + [GAUSS 50000 - GAUSS 50999](/reference-guide/error-code-reference/76-GAUSS-50000-GAUSS-50999.md) + + [GAUSS 51000 - GAUSS 51999](/reference-guide/error-code-reference/77-GAUSS-51000-GAUSS-51999.md) + + [GAUSS 52000 - GAUSS 52999](/reference-guide/error-code-reference/78-GAUSS-52000-GAUSS-52999.md) + + [GAUSS 53000 - GAUSS 53699](/reference-guide/error-code-reference/79-GAUSS-53000-GAUSS-53699.md) + + 错误日志信息参考 + + [内核错误信息](/reference-guide/error-log-reference/kernel-error-message.md) ++ 故障诊断指南 + + [常见故障定位手段](/common-faults-and-identification/common-fault-locating-methods.md) + + 常见故障定位案例 + + core问题定位 + + [磁盘满故障引起的core问题](/common-faults-and-identification/common-fault-locating-cases/1-core-fault-locating/1-core-dump-occurs-due-to-full-disk-space.md) + + [GUC参数log_directory设置不正确引起的core问题](/common-faults-and-identification/common-fault-locating-cases/1-core-fault-locating/2-core-dump-occurs-due-to-incorrect-settings-of-guc-parameter-log-directory.md) + + [开启RemoveIPC引起的core问题](/common-faults-and-identification/common-fault-locating-cases/1-core-fault-locating/3-core-dump-occurs-when-removeipc-is-enabled.md) + + [x86下安装完成后发生coredump](/common-faults-and-identification/common-fault-locating-cases/1-core-fault-locating/4-core-dump-occurs-after-installation-on-x86.md) + + 权限/会话/数据类型问题定位 + + [强制结束指定的问题会话](/common-faults-and-identification/common-fault-locating-cases/13-forcibly-terminating-a-session.md) + + [不同用户查询同表显示数据不同](/common-faults-and-identification/common-fault-locating-cases/19-different-data-is-displayed.md) + + [业务运行时整数转换错](/common-faults-and-identification/common-fault-locating-cases/22-an-error-occurs-during-integer-conversion.md) + + 服务/高可用/并发问题定位 + + [备机处于need repair(WAL)状态问题](/common-faults-and-identification/common-fault-locating-cases/3-standby-node-in-the-need-repair-state.md) + + [服务启动失败](/common-faults-and-identification/common-fault-locating-cases/5-service-startup-failure.md) + + [switchover操作时,主机降备卡住](/common-faults-and-identification/common-fault-locating-cases/9-primary-node-is-hung-in-demoting.md) + + [高并发报错”too many clients already”或无法创建线程](/common-faults-and-identification/common-fault-locating-cases/23-too-many-clients-already.md) + + 表/分区表问题定位 + + [VACUUM FULL一张表后,表文件大小无变化](/common-faults-and-identification/common-fault-locating-cases/17-table-size-does-not-change.md) + + [执行修改表分区操作时报错](/common-faults-and-identification/common-fault-locating-cases/18-an-error-is-reported-when-the-table-partition-is-modified.md) + + 文件系统/磁盘/内存问题定位 + + [在XFS文件系统中,使用du命令查询数据文件大小大于文件实际大小](/common-faults-and-identification/common-fault-locating-cases/7-after-you-run-the-du-command.md) + + [在XFS文件系统中,出现文件损坏](/common-faults-and-identification/common-fault-locating-cases/8-file-is-damaged-in-the-xfs-file-system.md) + + [内存不足问题](/common-faults-and-identification/common-fault-locating-cases/4-insufficient-memory.md) + + [出现“Error:No space left on device”提示](/common-faults-and-identification/common-fault-locating-cases/6-error-no-space-left-on-device-is-displayed.md) + + [TPCC运行时,注入磁盘满故障,TPCC卡住的问题](/common-faults-and-identification/common-fault-locating-cases/2-when-the-tpcc-is-running.md) + + [磁盘空间达到阈值,数据库只读](/common-faults-and-identification/common-fault-locating-cases/10-disk-space-usage-reaches-the-threshold.md) + + SQL问题定位 + + [执行 SQL 语句时,提示 Lock wait timeout](/common-faults-and-identification/common-fault-locating-cases/16-lock-wait-timeout-is-displayed.md) + + [分析查询语句是否被阻塞](/common-faults-and-identification/common-fault-locating-cases/14-analyzing-whether-a-query-statement-is-blocked.md) + + [分析查询效率异常降低的问题](/common-faults-and-identification/common-fault-locating-cases/15-low-query-efficiency.md) + + [分析查询语句长时间运行的问题](/common-faults-and-identification/common-fault-locating-cases/11-slow-response-to-a-query-statement.md) + + [分析查询语句运行状态](/common-faults-and-identification/common-fault-locating-cases/12-analyzing-the-status-of-a-query-statement.md) + + 索引问题定位 + + [修改索引时只调用索引名提示索引不存在](/common-faults-and-identification/common-fault-locating-cases/20-when-a-user-specifies-only-an-index-name.md) + + [重建索引失败](/common-faults-and-identification/common-fault-locating-cases/21-reindexing-fails.md) + + [btree 索引故障情况下应对策略](/common-faults-and-identification/common-fault-locating-cases/24-b-tree-index-faults.md) ++ [源码解析](/source-code-parsing.md) ++ 常见问题解答 (FAQs) + + [产品FAQs](/faqs/product-faqs.md) + + [应用开发FAQs](/faqs/application-development-faqs.md) + + [部署运维FAQs](/faqs/deployment-and-maintenance-faqs.md) + + [升级FAQs](/faqs/upgrade-faqs.md) + + [高可用FAQs](/faqs/high-availability-faqs.md) + + [迁移FAQs](/faqs/migration-faqs.md) ++ [术语表](/glossary.md) ++ Mogeaver + + [简介](/mogeaver/mogeaver-overview.md) + + [使用](/mogeaver/mogeaver-usage.md) + + [发布记录](/mogeaver/mogeaver-release-notes.md) diff --git a/product/zh/docs-mogdb/v3.0/toc_parameters-and-tools.md b/product/zh/docs-mogdb/v3.0/toc_parameters-and-tools.md index 4d583014ce2869f2bbd20cd147bb9bc1ee6917a3..a8d2b2dcdbbfe76de26984437703e147ecd735a9 100644 --- a/product/zh/docs-mogdb/v3.0/toc_parameters-and-tools.md +++ b/product/zh/docs-mogdb/v3.0/toc_parameters-and-tools.md @@ -66,6 +66,7 @@ + CM相关参数 + [cm_agent参数](/reference-guide/guc-parameters/cm-parameters/cm_agent.md) + [cm_server参数](/reference-guide/guc-parameters/cm-parameters/cm_server.md) + + [SQL模式](/reference-guide/guc-parameters/SQL-mode.md) + [升级参数](./reference-guide/guc-parameters/23-upgrade-parameters.md) + [其他选项](./reference-guide/guc-parameters/24-miscellaneous-parameters.md) + [等待事件](./reference-guide/guc-parameters/25-wait-events.md) @@ -340,11 +341,13 @@ + [gs_dump](./reference-guide/tool-reference/server-tools/5-gs_dump.md) + [gs_dumpall](./reference-guide/tool-reference/server-tools/6-gs_dumpall.md) + [gs_guc](./reference-guide/tool-reference/server-tools/7-gs_guc.md) + + [gs_gucquery](/reference-guide/tool-reference/server-tools/7-gs_gucquery.md) + [gs_encrypt](./reference-guide/tool-reference/server-tools/7.1-gs_encrypt.md) + [gs_om](./reference-guide/tool-reference/server-tools/8-gs_om.md) + [gs_plan_simulator](./reference-guide/tool-reference/server-tools/8.1-gs_plan_simulator.md) + [gs_restore](./reference-guide/tool-reference/server-tools/9-gs_restore.md) + [gs_ssh](./reference-guide/tool-reference/server-tools/10-gs_ssh.md) + + [gs_watch](/reference-guide/tool-reference/server-tools/gs_watch.md) + 系统内部使用的工具 + [gaussdb](./reference-guide/tool-reference/tools-used-in-the-internal-system/1-gaussdb.md) + [gs_backup](./reference-guide/tool-reference/tools-used-in-the-internal-system/2-gs_backup.md)