Reclaim abandoned replication slots without waiting for restart

オープン
#41 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@yash-gadgil がすでに取り組んでいます。

2026年11月21日 から。

  • #42 @yash-gadgil による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
postgresql, rust
領域
databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Rust
スター
129
フォーク
7
平均マージ
1日 19時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

juspay/streamgres のほかの issue

juspay/streamgres の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。