Align catalog loading and table reads with PostgreSQL publication configuration

Offen
#40 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@SahilKhan101 arbeitet bereits daran.

Seit 20.11.2026.

  • #48 von @SahilKhan101 — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.
Vorherrschende Sprache
Rust
Sterne
129
Forks
7
Ø Merge
1 T. 19 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus juspay/streamgres

Alle Issues in juspay/streamgres

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.