Updated on 2023-12-22 GMT+08:00

ErrorCode Rules

The naming rule complies with the following rules: GS_[3-digit service ID][2-digit error type ID][4-digit auto-increment ID].

For example, GS_201110003 indicates a parameter error (11) in the row-column storage type (0) of the SQL module (2), Sub-error (0003) indicates the third error code of the same type (for example, the format of the parameter OID is incorrect).

For details about the current service and error type, see Table1 Description of Error Codes.

Table 1 Description of Error Codes

Category

Module Type

Sub Module Type

First three digits of an error code

SQL

Row-column store

Row-store

101

Column-store

102

HStore

103

GIN Index

104

Btree Index

105

Row-store Vacuum

106

Column-store Vacuum

107

Time Series Table

108

SP-GiST Index

109

Hash Index

110

Transaction

Lock

111

GTM

112

xlog

113

Snapshot

114

Barrier

115

Pool

116

Checkpoint

117

Residualfiles

118

HA

Data page Replication

121

Log Replication

122

Build

123

Primary-standby DN Switchovers

124

Replication Slot

125

Log flow Control

126

Catchup

127

Synchronous Submission

128

SQL on Anywhere

SQL on paequet

131

SQL on orc

132

SQL on Hudi

133

SQL on carbondata

134

OBS/HDFS/DLI

135

GDS/copy

Common mechanisms (option parameters, task assignment, compression)

141

Importing

142

Exporting

143

Interconnection

145

GDS reporting

146

Backup

Logical Backup

161

Fine-grained DR

162

Other

CBM

151

Logical Replication

152

RPC Message Output

153

Postmaster

154

IPC

155

Commands

156

Tablespace

157

Clusters

158

Common mechanism in the Port

159

Storage

Parser

Lexical Analysis

211

Grammatical Analysis

212

DDL

213

DML

214

Expressions

215

Metadata

216

Optimizer

Rewriting Queries

221

Path Generation

222

Plan generation

223

Plan Cache

224

Analyze

225

utile Interface

226

Actuator

Row Execution Engine

231

Vectorized Execution Engine

232

Executing Diagnostic Information

233

LLVM

234

Distributed Framework

235

RemoteQuery

236

Explain

237

Security

Certificates

241

Authorizes

242

Encryptes

243

Audit

244

Masking

245

Communications

libpq

251

pooler

252

libcomm

253

Stream Thread Pool

254

Communication Universal Interface

255

WLM

Load Management

261

Memory Management

262

CPU Management

263

Space Control

264

Network Control

265

Exception Rule

266

Resource Monitoring

267

Logical Cluster

Logical Cluster

271

Redistribution

Redistribution

281

Other

ODBC

201

Tsearch

202

Associated Analysis

203

CN Retry

204

Acceleration Cluster

205

Advanced Packages

206

JSON

207

UDF

208

Functions and Features

209

CBB

CBB

Signal

301

Handle

302

Memory

303

Thread

304

Error Handling

305

Timer

306

IPC

307

GUC

308

SysCache

309

Log thread

310

Disaster Recovery (DR)

Disaster Recovery (DR)

-

501

Table 2 Error code Type

Errorcode Type ID

Errorcode Type Description

01

Memory error (out of memory, memory unavailable, memory overflow, etc.)

02

Disk Error

03

Network error (connection setup failure, access denied, etc.)

04

File error (file not found, file size error, file format error, file reading failure, file writing failure, file damage, etc.)

05

Connection error (connection does not exist, connection failed, connection unavailable, connected platform error, etc.)

06

Protocol error.

10

Grammatical errors. (unsupported syntax, object not found, etc.)

11

Parameter exception (parameter exception in the SQL statement, including function parameter exception, expression parameter exception, table creation statement parameter exception, and parameter out-of-bounds exception)

12

Data error (data not found, invalid data (divided by zero), etc.)

13

Data type errors (type mismatch, data type issues (out of bounds, etc.))

14

Operation error (unsupported operation)

15

Incorrect permission (illegal user, incorrect user password, or unauthorized user)

17

Undefined object error

18

Invalid object error. (various object types such as database, schema, table, and function)

20

Internal error (exception scenario, related to debugging)

21

Unsupported Features

22

Locking errors (related to lock timeout, deadlock, and lock conflict)

24

SPI interface (The SPI interface fails to be executed.)