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

Checks the option lists of catalog commands.

Rule: PG-CATALOG-OPTION-001. A command that reads its options into one slot each rejects an option given twice ("conflicting or redundant

  • options"). CREATE DATABASE accepts the options the manual lists for the

release (icu_rules from 16, builtin_locale from 17); ALTER DATABASE accepts allow_connections, connection_limit, is_template and tablespace, the last only alone. Any other option name is not recognized. Termination: one pass over a finite list. Source: https://www.postgresql.org/docs/17/sql-createdatabase.html, https://www.postgresql.org/docs/16/sql-createdatabase.html, https://www.postgresql.org/docs/17/sql-alterdatabase.html. Status: Implemented.

Methods§

Private surface 2§

Implementation details, listed for orientation only.

private const CREATE = ['tablespace', 'owner', 'template', 'encoding', 'locale', 'lc_collate', 'lc_cty…
private const ALTER = ['allow_connections', 'connection_limit', 'is_template', 'tablespace']

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 5
Method calls 5