Updated on 2024-03-15 GMT+08:00

GAUSS-01051 -- GAUSS-01060

GAUSS-01051: "failed to change schema dependency for type %s"

SQLSTATE: XX000

Description: Failed to change the schema dependency of the type.

Solution: The system catalog is abnormal. Contact technical support.

GAUSS-01052: "channel name cannot be empty"

SQLSTATE: 22023

Description: The channel name is empty.

Solution: Check the SQL statement and specify a channel name.

GAUSS-01053: "channel name too long"

SQLSTATE: 22023

Description: The channel name is excessively long.

Solution: Check the SQL statement and ensure that the channel name length is valid.

GAUSS-01054: "payload string too long"

SQLSTATE: 22023

Description: The string is too long for the payload type.

Solution: Check the SQL statement and ensure that the payload string length is valid.

GAUSS-01055: "cannot PREPARE a transaction that has executed LISTEN, UNLISTEN, or NOTIFY"

SQLSTATE: 0A000

Description: A transaction that has executed LISTEN, UNLISTEN, or NOTIFY operation cannot be prepared.

Solution: Check the SQL statement and ensure that the prepared transaction has not executed LISTEN, UNLISTEN, or NOTIFY operation.

GAUSS-01056: "too many notifications in the NOTIFY queue"

SQLSTATE: 54000

Description: Excessive notifications exist in the NOTIFY queue.

Solution: Retry the failed statement.

GAUSS-01057: "unexpected rewrite result for CREATE TABLE AS SELECT"

SQLSTATE: XX000

Description: The rewriting result of CREATE TABLE AS SELECT is incorrect.

Solution: The rewriting result should contain only one statement. Simplify the SELECT statement following CREATE TABLE AS.

GAUSS-01058: "no collation was derived for column '%s' with collatable type %s"

SQLSTATE: 42P22

Description: The attribute column supports attcollation but the attcollation is invalid, and the heap table cannot be created.

Solution: Ensure that the collation definition in the attribute column is valid when the table is created.

Example:

1
2
3
postgres=# create table t5 as select a from t1 union all select a from t2;
ERROR:  no collation was derived for column "a" with collatable type text
HINT:  Use the COLLATE clause to set the collation explicitly.

GAUSS-01059: "CREATE TABLE AS specifies too many column names"

SQLSTATE: 42601

Description: CREATE TABLE AS specifies too many columns.

Solution: Check the SQL statement and ensure that the number of specified columns is appropriate.

GAUSS-01060: "option '%s' not found"

SQLSTATE: 42704

Description: The option is not found.

Solution: Check the SQL statement and ensure that the corresponding option is specified.