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

Tells which relations of a query level a qualifier or a star reaches.

Rule: PG-VISIBILITY-001. A relation the hidden list of which holds QUALIFIED_ONLY is visible as a relation name but not for unqualified column names and not to *: PostgreSQL treats the tables inside a join that has no alias this way, and the alias of USING columns. Such a relation also lists every slot position as hidden, so that the core column lookup skips it for unqualified names; its system columns are not found by an unqualified name either (colNameToVar skips a namespace item whose columns are not visible, and a join has no system columns), so an unqualified name is looked up in a view of the positions without them. A qualifier reaches a relation by its alias, or, without one, by its name and the schema written; * reaches every other relation and skips its hidden slots. Source: https://www.postgresql.org/docs/17/queries-table-expressions.html#QUERIES-FROM. Status: Implemented.

Constants§

public const QUALIFIED_ONLY = -1

The hidden-list entry that marks a relation as reachable with a qualifier only.

Methods§

public function unhidden(VisibleRelation $relation): list<OutputSlot>

Answers the slots of a relation that unqualified names see.

Parameters

Returns

Test cases 1
Called from 1
Calls 1

Test cases 7§

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

Dedicated tests 7

Relations§

Instantiated in 9
Method calls 13