Reclaim abandoned replication slots without waiting for restart

Aberta
#41 0 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@yash-gadgil já está trabalhando nisso.

Desde 21/11/2026.

  • #42 de @yash-gadgil — aberto

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
postgresql, rust
Domínio
databases

Direção de pesquisa

Start by locating the startup slot-cleanup implementation and its tests, then trace where cleanup could run while the process is active. Check the supported PostgreSQL versions and available slot metadata, along with the STREAMGRES_SLOT_CLEANUP_AGE_MS configuration and its documentation. Done means safe cleanup is tested for stale and active slots across supported versions, with retention behavior documented.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Problem

Replication slots left behind by a crashed process can continue holding WAL. Cleanup currently runs only at startup, only on PostgreSQL 17 (using inactive_since), and only when STREAMGRES_SLOT_CLEANUP_AGE_MS is configured.

Expected behavior

Abandoned slots should be identified and cleaned up reliably, including while the process is running, without relying solely on PostgreSQL 17-specific metadata.

Acceptance criteria

  • Slot cleanup can run after startup, not only during initialization.
  • The implementation handles supported PostgreSQL versions and their available slot metadata.
  • Cleanup age configuration has documented and tested behavior.
  • Active slots and slots that should be retained are never removed.
  • Tests cover stale slots, active slots, and supported PostgreSQL versions.
Linguagem predominante
Rust
Estrelas
129
Forks
7
Merge médio
1d 19h
PRs com merge (30d)
5

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de juspay/streamgres

Todas as issues de juspay/streamgres

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.