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

GAUSS-00821 -- GAUSS-00830

GAUSS-00821: "cannot inherit to temporary relation of another session"

SQLSTATE: 42809

Description: When ALTER TABLE INHERIT is run, the temporary relation table of another session cannot be inherited.

Solution: Cancel this operation.

GAUSS-00822: "circular inheritance not allowed"

SQLSTATE: 42P07

Description: When ALTER TABLE INHERIT is run, circular inheritance is forbidden.

Solution: Cancel this operation.

GAUSS-00823: "table '%s' without OIDs cannot inherit from table '%s' with OIDs"

SQLSTATE: 42809

Description: A table without an OIDs cannot inherit an OID by the ALTER TABLE INHERIT operation.

Solution: Change the table to a table with OIDs.

GAUSS-00824: "column '%s' in child table must be marked NOT NULL"

SQLSTATE: 42804

Description: When ALTER TABLE INHERIT is run, a parent table has the NOT NULL constraint, but the column of a child table does not have the constraint.

Solution: Add the NOT NUll constraint to the column attributes of the child table.

GAUSS-00825: "child table is missing column '%s'"

SQLSTATE: 42804

Description: When ALTER TABLE INHERIT is run, a child table lacking a column cannot inherit a parent table.

Solution: Add the missing column to the child table, or cancel the inheritance.

GAUSS-00826: "child table '%s' has different definition for check constraint '%s'"

SQLSTATE: 42804

Description: When ALTER TABLE INHERIT is run, a child table and a parent table have different definitions on a constraint.

Solution: Ensure that the parent and child tables have the same definition on a constraint.

GAUSS-00827: "constraint '%s' conflicts with non-inherited constraint on child table '%s'"

SQLSTATE: 42P17

Description: When ALTER TABLE INHERIT is run, the constraint on a parent table conflicts with the non-inherited constraint on a child table.

Solution: Modify the constraint on the parent or child table.

GAUSS-00828: "child table is missing constraint '%s'"

SQLSTATE: 42804

Description: When ALTER TABLE INHERIT is run, a constraint is missing in a child table.

Solution: Modify this operation.

GAUSS-00829: "relation '%s' is not a parent of relation '%s'"

SQLSTATE: 42P01

Description: When ALTER TABLE NO INHERIT is run to delete parent table constrains on a child table, the child table does not have the parent table relationship.

Solution: Perform this operation for ordinary tables, indexes, and TOAST tables.

GAUSS-00830: "typed tables cannot inherit"

SQLSTATE: 42809

Description: The database does not support the ALTER TABLE OF statement.

Solution: Check the ALTER TABLE operation. The attached inherited table cannot be of composite type.