classPublishedTables
final class PublishedTables
Derives the facts of a table published by CREATE or ALTER PUBLICATION.
Rule: PG-PUBLICATION-TABLE-001. The table name is resolved along the schema search path (CORE-TABLE-LOOKUP-001); a publication sees no common table. A declared table contributes one slot per declared column and is open when its column list is incomplete; an undeclared or conditionally resolved name contributes an open shape naming the missing declaration; a missing or conflicting name is a diagnostic. The column list names columns of the table: against a declared table, a column it does not have (when its columns are complete), a system column and a repeated column are diagnostics. The row filter is evaluated with the table visible under its name, as the server adds it to the filter's namespace. Termination: one pass over the finite column list. Source: https://www.postgresql.org/docs/17/sql-createpublication.html, https://www.postgresql.org/docs/17/logical-replication-row-filter.html, https://www.postgresql.org/docs/17/logical-replication-col-lists.html. Status: Implemented.
Methods§
public function derive(
PublicationTable $table,
Derivation $derivation,
Environment $environment,
): RelationFactResolves the table, checks the column list, derives the row filter and answers the facts of the occurrence.
Parameters
$table | PublicationTable | |
$derivation | Derivation | |
$environment | Environment |
Returns
Called from 1
Calls 11
- method-call Derivation::table() line 49
- new Environment line 49
- new RowShape line 50
- new OutputSlot line 54
- method-call DeclaredTyping::fact() line 54
- new DeclaredTyping line 54
- new IncompleteMembers line 56
- method-call PublishedTables::columns() line 57
- method-call Derivation::scalar() line 62
- new VisibleRelation line 62
- new RelationFact line 65
public function columns(
PublicationTable $table,
DeclaredTable $resolution,
Derivation $derivation,
): voidReports the names of the column list a declared table does not offer, and repeated names.
Parameters
$table | PublicationTable | |
$resolution | DeclaredTable | |
$derivation | Derivation |
Called from 1
Calls 6
- function-call
in_arrayline 77 - method-call Derivation::report() line 78
- new CatalogMisuse line 78
- class-const CatalogMisuseRule::PublicationSystemColumn() line 78
- class-const CatalogMisuseRule::PublicationMissingColumn() line 80
- class-const CatalogMisuseRule::PublicationDuplicateColumn() line 84
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
PublishedTablesTestcalls