pg breaking changes
Updated December 4, 2026
On this page
Latest version 8.23.1, released September 30, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 7.0.0 to 8.20.0: 175 breaking changes in 10 versions.
- From 6.0.0 to 8.20.0: 224 breaking changes in 11 versions.
pg 8.20.0 breaking changes
- Removed
ClientConfig.enableChannelBinding
ClientConfig.enableChannelBinding was removed in pg 8.20.0 npmjs.com - Removed
ClientConfig.pipeline
ClientConfig.pipeline was removed in pg 8.20.0 npmjs.com - Removed
ClientConfig.sslnegotiation
ClientConfig.sslnegotiation was removed in pg 8.20.0 npmjs.com - Removed
default.Client.pipeline
Client.pipeline was removed in pg 8.20.0 npmjs.com - Removed
default.ClientBase.getTransactionStatus
ClientBase.getTransactionStatus was removed in pg 8.20.0 npmjs.com - Removed
TransactionStatus
TransactionStatus was removed in pg 8.20.0 npmjs.com
pg 8.19.0 breaking changes
- Signature changed
ClientBase.on
Was on<E extends "drain" | "error" | "notice" | "notification" | "end">(event: E, listener: E extends "drain" | "end" ? () => void : E extends "error" ? (err: Error) => void : E extends "notice" ? (notice: NoticeMessage) => void... npmjs.com - Signature changed
default.PoolClient.connect
Was connect(): Promise<ClientBase>; now connect(): Promise<Client>. npmjs.com - Signature changed
PoolClient
Was interface PoolClient extends ClientBase; now interface PoolClient extends Client. npmjs.com - Signature changed
PoolClient.connect
Was connect(): Promise<ClientBase> connect(callback: ((err: Error) => void) | ((err: null, c: ClientBase) => void)): void; now connect(): Promise<Client> connect(callback: ((err: Error) => void) | ((err: null, c: Client) => void)): void. npmjs.com
pg 8.18.0 breaking changes
- Removed
ClientConfig.enableChannelBinding
ClientConfig.enableChannelBinding was removed in pg 8.18.0 npmjs.com - Removed
ClientConfig.pipeline
ClientConfig.pipeline was removed in pg 8.18.0 npmjs.com - Removed
ClientConfig.sslnegotiation
ClientConfig.sslnegotiation was removed in pg 8.18.0 npmjs.com - Removed
default.Client.pipeline
Client.pipeline was removed in pg 8.18.0 npmjs.com - Removed
default.ClientBase.getTransactionStatus
ClientBase.getTransactionStatus was removed in pg 8.18.0 npmjs.com - Removed
default.PoolClient.connection
PoolClient.connection was removed in pg 8.18.0 npmjs.com - Removed
default.PoolClient.database
PoolClient.database was removed in pg 8.18.0 npmjs.com - Removed
default.PoolClient.end
PoolClient.end was removed in pg 8.18.0 npmjs.com - Removed
default.PoolClient.host
PoolClient.host was removed in pg 8.18.0 npmjs.com - Removed
default.PoolClient.password
PoolClient.password was removed in pg 8.18.0 npmjs.com
And 10 more in this version. Sign up to see every change
pg 8.17.0 breaking changes
- Signature changed
Client.connect
Was connect(): Promise<void> connect(callback: (err: Error) => void): void; now connect(): Promise<Client> connect(callback: ((err: Error) => void) | ((err: null, c: Client) => void)): void. npmjs.com - Signature changed
ClientBase.connect
Was connect(): Promise<void> connect(callback: (err: Error) => void): void; now connect(): Promise<ClientBase> connect(callback: ((err: Error) => void) | ((err: null, c: ClientBase) => void)): void. npmjs.com - Signature changed
ClientBase.on
Was on<E extends "drain" | "error" | "notice" | "notification" | "end">(event: E, listener: E extends "drain" | "end" ? () => void : E extends "error" ? (err: Error) => void : E extends "notice" ? (notice: NoticeMessage) => void... npmjs.com - Signature changed
default.Client.connect
Was connect(): Promise<void>; now connect(): Promise<Client>. npmjs.com - Signature changed
default.ClientBase.connect
Was connect(): Promise<void>; now connect(): Promise<ClientBase>. npmjs.com - Signature changed
PoolClient
Was interface PoolClient extends ClientBase; now interface PoolClient extends Client. npmjs.com
pg 8.16.0 breaking changes
- Signature changed
ClientBase.on
Was on(event: "drain", listener: () => void): this on(event: "end", listener: () => void): this on(event: "error", listener: (err: Error) => void): this on(event: "notice", listener: (notice: NoticeMessage) => void): this on(event... npmjs.com - Signature changed
Pool.on
Was on(event: "connect" | "acquire" | "remove", listener: (client: PoolClient) => void): this on(event: "release" | "error", listener: (err: Error, client: PoolClient) => void): this; now on<K extends "error" | "release" | "connect" |... npmjs.com - Signature changed
Query.on
Was on(event: "end", listener: (result: ResultBuilder<R>) => void): this on(event: "error", listener: (err: Error) => void): this on(event: "row", listener: (row: R, result?: ResultBuilder<R>) => void): this; now on<E extends "row" |... npmjs.com
pg 8.15.0 breaking changes
- Removed
ClientConfig.enableChannelBinding
ClientConfig.enableChannelBinding was removed in pg 8.15.0 npmjs.com - Removed
ClientConfig.pipeline
ClientConfig.pipeline was removed in pg 8.15.0 npmjs.com - Removed
ClientConfig.sslnegotiation
ClientConfig.sslnegotiation was removed in pg 8.15.0 npmjs.com - Removed
default.Client.pipeline
Client.pipeline was removed in pg 8.15.0 npmjs.com - Removed
default.ClientBase.getTransactionStatus
ClientBase.getTransactionStatus was removed in pg 8.15.0 npmjs.com - Removed
default.PoolClient.connection
PoolClient.connection was removed in pg 8.15.0 npmjs.com - Removed
default.PoolClient.database
PoolClient.database was removed in pg 8.15.0 npmjs.com - Removed
default.PoolClient.end
PoolClient.end was removed in pg 8.15.0 npmjs.com - Removed
default.PoolClient.host
PoolClient.host was removed in pg 8.15.0 npmjs.com - Removed
default.PoolClient.password
PoolClient.password was removed in pg 8.15.0 npmjs.com
And 17 more in this version. Sign up to see every change
Older versions
6 older versions, each with its first changes. Sign up to see every change
Show 6 older versions
pg 8.13.0 breaking changes
- Signature changed
Client.connect
Was connect(): Promise<void> connect(callback: (err: Error) => void): void; now connect(): Promise<Client> connect(callback: ((err: Error) => void) | ((err: null, c: Client) => void)): void. npmjs.com - Signature changed
ClientBase.connect
Was connect(): Promise<void> connect(callback: (err: Error) => void): void; now connect(): Promise<ClientBase> connect(callback: ((err: Error) => void) | ((err: null, c: ClientBase) => void)): void. npmjs.com
And 6 more in this version.
pg 8.11.0 breaking changes
- Removed
PoolConfig.min
PoolConfig.min was removed in pg 8.11.0 npmjs.com - Signature changed
ClientBase.escapeIdentifier
Was escapeIdentifier(str: string): string; now escapeIdentifier: typeof escapeIdentifier. npmjs.com
And 8 more in this version.
pg 8.10.0 breaking changes
- Removed
ClientConfig.client_encoding
ClientConfig.client_encoding was removed in pg 8.10.0 npmjs.com - Removed
ClientConfig.enableChannelBinding
ClientConfig.enableChannelBinding was removed in pg 8.10.0 npmjs.com
And 32 more in this version.
pg 8.0.0 breaking changes
- Removed
ClientConfig.parseInputDatesAsUTC
ClientConfig.parseInputDatesAsUTC was removed in pg 8.0.0 npmjs.com - Signature changed
BindConfig.binary
Was binary?: string; now binary?: string | undefined. npmjs.com
And 55 more in this version.
pg 7.0.0 breaking changes
- Removed
connect
The global singleton pool methods are gone; create a pg.Pool and call its connect and end methods instead. npmjs.com - Removed
end
The global singleton pool shutdown is removed; call end on a user-created pool instead. npmjs.com
And 47 more in this version.
pg 6.0.0 breaking changes
- Removed
pg.pools
The pg.pools object is gone; it was never meant to be public. Create pools with new pg.Pool() instead of relying on it. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.