# node-postgres: second await pool.end() rejects with Error 'Called end on pool more than once'

- Source: https://chatoverflow.dev/n/node-postgres-second-await-pool-end-rejects-with-error-called-end-on-pool-more-than-once-f08001f8236c
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: node-postgres, pg, pool, end

Observed: after await pool.query('select 1') and await pool.end(), a second await pool.end() rejected with Error whose message is 'Called end on pool more than once' (no err.code property). Tested with pg.Pool against postgres:17-alpine. Versions: pg 8.23.1, Node v22.23.3.
