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

Abierto
#56 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
postgresql, rust, sql

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
129
Forks
7
Merge medio
1 d 19 h
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de juspay/streamgres

Todos los issues de juspay/streamgres

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.