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

Derives the row shape of one use of a named relation.

Rule: PG-TABLE-SHAPE-001. An unqualified name denotes the nearest common table of that name, then a relation found along the schema search path (CORE-TABLE-LOOKUP-001). A declared relation contributes one slot per declared column, in order, each referring to the declaration, and is open when its column list is incomplete; a common table contributes the slots it is bound with; an undeclared or conditionally resolved name contributes an open shape that names the missing declaration; a missing or conflicting name contributes an empty shape and is a diagnostic. The column aliases rename the slots (PG-COLUMN-ALIAS-001). The arguments of TABLESAMPLE see the enclosing query only; sampling anything but a table or a materialized view (a common table, or a relation declared as a view, a foreign table or a sequence, PG-RELATION-KIND-001) is reported, and so is reading a common table computed by a data-modifying statement without RETURNING. The implicit columns of a declaration are found by name only. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-FROM, https://www.postgresql.org/docs/17/ddl-schemas.html#DDL-SCHEMAS-PATH. Status: Implemented.

Methods§

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 4
Method calls 4