A served table can gain or lose rows without a change reaching the feed (partition maintenance, INHERITS)

Open
#56 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
postgresql, rust, sql
Domain
backend, databases

Research direction

Start with DbTable in src/model/schema.rs and the queries that read ordinary tables, then determine how a FROM ONLY flag should be represented. The inheritance change can be completed independently, while partition maintenance still requires maintainer agreement on how the server detects affected subscriptions and signals that their snapshots must be re-read. Done means inherited rows no longer enter the feed unintentionally and partition changes reliably trigger the agreed re-read behavior.

Written by the indexing model from the issue text.

Description

I'm taking the inheritance part first, as its own PR: reads of an ordinary table (relkind = 'r') will use FROM ONLY, which needs a flag on DbTable in src/model/schema.rs. Is that change to the model acceptable?

For partition maintenance I'd like to agree on the approach before writing it: stop the server naming the change first, then re-read the affected subscriptions as a follow-up? The trigger currently emits nothing when the published schema is unchanged, so it needs a partition snapshot or an equivalent signal.

Dominant language
Rust
Stars
129
Forks
7
Avg merge
1d 19h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from juspay/streamgres

All issues in juspay/streamgres

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.