final class ColumnNaming
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Names an unaliased result column after its expression, with the strength PostgreSQL gives each name.

Rule: PG-COLUMN-NAMING-001 (FigureColname). A column reference, a function call and the function-like constructs name the column firmly (strength 2). A cast names it after its operand when the operand names it firmly, and otherwise weakly (strength 1) after the type; a typed constant is a cast of a constant. CASE names it after its ELSE result when that names it firmly, and otherwise weakly case. An indirection names it after the last field it selects, and otherwise as its base does; parentheses and COLLATE pass the operand's name through. Any other expression gives no name (strength 0), and the query names the column ?column?. Termination: each step descends one operand of a finite tree. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-SELECT-LIST, https://github.com/postgres/postgres/blob/REL_17_2/src/backend/parser/parse_target.c. 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 5
Method calls 5