final class ChangeChecks
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.

Checks the attributes of ALTER OPERATOR ... SET and ALTER TYPE ... SET.

Rule: PG-ALTER-ATTRIBUTE-001. Both commands read each attribute in turn and stop at the first they refuse: an attribute they do not recognize is an error (not the warning of CREATE OPERATOR and CREATE TYPE); an attribute of the CREATE command that cannot be changed is an error (for an operator leftarg, rightarg, function, procedure, and before PostgreSQL 17 also commutator, negator, merges and hashes; for a type every attribute but storage, receive, send, typmod_in, typmod_out, analyze and subscript). Without a value a function attribute removes the function and a Boolean is true, while an operator attribute and storage require a parameter; a value the reading rejects draws the message of PG-DEFINE-ATTRIBUTE-001. Source: https://www.postgresql.org/docs/17/sql-alteroperator.html, https://www.postgresql.org/docs/17/sql-altertype.html, AlterOperator in src/backend/commands/operatorcmds.c and AlterType in src/backend/commands/typecmds.c of PostgreSQL 16 and 17. Termination: one pass over the attributes. Status: Implemented.

Methods§

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2

Relations§

Instantiated in 2
Method calls 2