amphp/postgres
Asynchronous PostgreSQL client for Amp.
v2.2.1
639K downloads/mo
#4431 most downloaded on Packagist
amphp/postgres
What this package is like to depend on
Last release 5 months ago
25 Feb 2026
Release timing varies
gaps range from 8 days to 1.3 years
Rarely documented
notes for 6 of 29 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
35 releases · first in 2017
2 releases in the last 12 months
see the full history below
Release timeline
35 releases · Jun 2017 to Feb 2026Releases
latest 35-
v2.2.125 Feb 2026Release notes
Open source →What's Changed
- Fixed generation of connection strings if a connection parameter value contains a space.
Full Changelog: v2.2.0...v2.2.1
-
v2.2.022 Feb 2026 -
v2.1.121 Nov 2024Release notes
Open source →What's Changed
- Fixed handling of
int2vectorandoidvectorfields when usingext-pgsql(#68). - The type table is now loaded using an async query when using
ext-pgsql. This query is only executed once per server upon the initial connection to that server. Using an async query will reduce latency when connecting to different Postgres servers. - Improved performance of array parsing when using
ext-pgsql.
Full Changelog: v2.1.0...v2.1.1
- Fixed handling of
-
v2.1.011 Oct 2024Release notes
Open source →What's Changed
- Fixed type cast for
numericcolumns when using theext-pgsqldriver. The column value was being cast to a float, it is now cast to a string for parity with theext-pqdriver to retain value precision. (#66) - Added a parameter for the default transaction isolation to
PostgresConnectionPoolto set the default transaction level when constructing the pool.
Full Changelog: v2.0.0...v2.1.0
- Fixed type cast for
-
v2.0.010 Mar 2024Release notes
Open source →Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of
Promise<ResolutionType>have been replaced withResolutionType.- Non-extension-specific classes and interfaces now are prefixed with
Postgresto avoid collisions with similar names from other libraries. - Result sets now implement
Traversable, allowing them to be used withforeachto iterate over result rows. - Marked most classes as internal, leaving only interfaces and concrete implementations required to use the API or create a custom connector.
PostgresTransactionnow extendsPostgresLinkinstead ofPostgresExecutorto support nested transactions.- Removed
TimeoutConnectorin favor ofDefaultPostgresConnectorwhich has aCancellationparameter onconnect()which may be used with anAmp\TimeoutCancellation. - Removed
PostgresConnectorsince the interface was replaced by template types onSqlConnector, i.e.SqlConnector<PostgresConfig, PostgresConnection> - Added support for
BYTEAfields. (#57) - Added the
PostgresConnectioninterface extendingPostgresLink. - Removed the
Receiverinterface. These methods are now a part ofPostgresConnection. - Removed the
QuoterInterface. These methods are now a part ofPostgresExecutor.
Release notes
Open source →What's Changed
- Compatibility with
amphp/[email protected]. - Forbid cloning and serialization of most class instances.
Full Changelog: v2.0.0-beta.5...v2.0.0-beta.6
Release notes
Open source →What's Changed
Nested transactions have been refactored to be created simply with
PostgresTransaction::beginTransaction()instead of needing to wrap aPostgresTransactioninto aPostgresNestableTransaction. If you did not use savepoints or nested transactions, you likely will be able to upgrade to this version without any code changes.- Updated transactions for
amphp/[email protected]andamphp/[email protected]. RemovedPostgresNestableTransaction. - Added
PostgresConnectioninterface extending the base interfaceConnectionfromamphp/sql. - Merged
PostgresQuotermethods intoPostgresExecutorand removedPostgresQuoter. - Moved
PostgresReceivermethods intoPostgresConnectionand removedPostgresReceiver.
Full Changelog: v2.0.0-beta.4...v2.0.0-beta.5
Release notes
Open source →- Fixed statements used in a nested transaction potentially deadlocking when using
ext-pgsql.
Release notes
Open source →- Added support for
BYTEAfields. (#57) - Added
PostgresNestableTransactionwhich may be optionally used to create aPostgresLinkfrom aPostgresTransactionobject. Nested transactions are implemented using savepoints. PostgresExecutornow extendsPostgresQuoter, moving the interface lower in the interface hierarchy.
- Non-extension-specific classes and interfaces now are prefixed with
-
v2.0.0-beta.617 Dec 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.509 Dec 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.407 May 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.301 May 2023 pre-releaseNothing published for this version
-
v2.0.0-beta.218 Dec 2022 pre-releaseNothing published for this version
-
v2.0.0-beta.117 Jul 2022 pre-releaseNothing published for this version
-
v1.4.506 Jan 2023Release notes
Open source →- Fixed cancelling an active query if a connection is closed when using
ext-pgsql(#54)
- Fixed cancelling an active query if a connection is closed when using
-
v1.4.418 Dec 2022Nothing published for this version
-
v1.4.304 Dec 2021Nothing published for this version
-
v1.4.220 Sep 2021Nothing published for this version
-
v1.4.125 Aug 2021Nothing published for this version
-
v1.4.016 Aug 2021Nothing published for this version
-
v1.3.328 Jan 2021Nothing published for this version
-
v1.3.206 Dec 2020Nothing published for this version
-
v1.3.111 Aug 2020Nothing published for this version
-
v1.3.001 Aug 2020Nothing published for this version
-
v1.2.113 Feb 2020Nothing published for this version
-
v1.2.006 Feb 2020Nothing published for this version
-
v1.1.116 Jan 2020Nothing published for this version
-
v1.1.030 Sep 2019Nothing published for this version
-
v1.0.404 Apr 2019Nothing published for this version
-
v1.0.314 Mar 2019Nothing published for this version
-
v1.0.213 Nov 2018Nothing published for this version
-
v1.0.130 Oct 2018Nothing published for this version
-
v1.0.014 Oct 2018Nothing published for this version
-
v0.2.115 Dec 2017Nothing published for this version
-
v0.2.012 Dec 2017Nothing published for this version
-
v0.1.228 Jul 2017Nothing published for this version
-
v0.1.122 Jun 2017Nothing published for this version
-
v0.1.021 Jun 2017Nothing published for this version