Align catalog loading and table reads with PostgreSQL publication configuration

Aperta
#40 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@SahilKhan101 ci sta già lavorando.

Dal 20/11/2026.

  • #48 di @SahilKhan101 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Problem

The engine loads every table in the configured schemas, even when the publication does not stream it. Tables outside the publication, tables published without updates or deletes, and tables with row filters, column lists, or generated columns can be read once and then silently become stale.

There are also table identity and lookup issues:

  • Non-public tables are quoted as one identifier ("schema.table") and cannot be read.
  • Using a schema.table string as table identity causes collisions for quoted table names containing dots (for example, public."a.b" versus a.b in schema a).
  • Planner statistics are looked up by table name across schemas, so statistics can be missing or mixed for same-named tables.
  • A schema change to a domain-typed column can stop the server when the message names the domain but the catalog stores its base type.

Expected behavior

Only tables whose publication configuration supports the engine’s snapshot and change-feed behavior should be treated as synchronized. Schema-qualified names and type metadata should remain unambiguous throughout reads, planning, and schema changes.

Acceptance criteria

  • Table loading validates publication membership and relevant publication options.
  • Unsupported publication configurations are reported clearly and do not silently produce stale tables.
  • Schema and table identifiers are handled as separate identifier components, including quoted names containing dots.
  • Planner statistics are scoped to the correct schema and table.
  • Domain-typed columns remain safe to process during schema changes.
  • Tests cover these publication, identifier, statistics, and domain-type cases.
Lingua principale
Rust
Stelle
129
Fork
7
Merge medio
1g 19h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di juspay/streamgres

Tutte le issue di juspay/streamgres

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.