Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

## pool.end() does not render the pool unusable afterward.

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

まだ誰も着手していません。

評価

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

調査の方向性

まず pool.end() のエントリーポイントを見つけ、完了をどのように通知し、pool の使用可能性をどのように変更するかを追跡します。要求された両方の結果を定義してテストします。pool.end() の完了を待機する処理はシャットダウンを待機しなければならず、後から同じ pool 参照を使用した場合の動作は明確に仕様化されていなければなりません。Issue ではファイルパスもテストパスも指定されていません。

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

説明

9.0

pool.end() does not render the pool unusable afterward.

2 things actually.

  1. await pool.end() doesn't properly wait for the pool to end AFAIK, so that should be fixed.
  2. I don't see a reason calling await pool.end() couldn't leave the pool in a usable state going forward. This would mostly be backwards compatible, but would make it easy in serverless environments to end the pool when the worker shuts down but still be able to keep a global pool reference which is a common pattern.

Originally posted by @brianc in https://github.com/brianc/node-postgres/discussions/3598#discussioncomment-15763673

主要言語
JavaScript
スター
13.2k
フォーク
1.4k
平均マージ
6日 15時間
マージ済み PR(30日)
6

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

brianc/node-postgres のほかの issue

brianc/node-postgres の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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