PackageTrack
Sign in Get early access

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 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 35
  1. v2.2.1 25 Feb 2026
    Release notes

    What's Changed

    • Fixed generation of connection strings if a connection parameter value contains a space.

    Full Changelog: v2.2.0...v2.2.1

    Open source →
  2. v2.2.0 22 Feb 2026
    Release notes

    What's Changed

    • Support Postgres config options by @PNixx in #70

    New Contributors

    • @PNixx made their first contribution in #70

    Full Changelog: v2.1.1...v2.2.0

    Open source →
  3. v2.1.1 21 Nov 2024
    Release notes

    What's Changed

    • Fixed handling of int2vector and oidvector fields when using ext-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

    Open source →
  4. v2.1.0 11 Oct 2024
    Release notes

    What's Changed

    • Fixed type cast for numeric columns when using the ext-pgsql driver. The column value was being cast to a float, it is now cast to a string for parity with the ext-pq driver to retain value precision. (#66)
    • Added a parameter for the default transaction isolation to PostgresConnectionPool to set the default transaction level when constructing the pool.

    Full Changelog: v2.0.0...v2.1.0

    Open source →
  5. v2.0.0 10 Mar 2024
    Release notes

    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 with ResolutionType.

    • Non-extension-specific classes and interfaces now are prefixed with Postgres to avoid collisions with similar names from other libraries.
    • Result sets now implement Traversable, allowing them to be used with foreach to 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.
    • PostgresTransaction now extends PostgresLink instead of PostgresExecutor to support nested transactions.
    • Removed TimeoutConnector in favor of DefaultPostgresConnector which has a Cancellation parameter on connect() which may be used with an Amp\TimeoutCancellation.
    • Removed PostgresConnector since the interface was replaced by template types on SqlConnector, i.e. SqlConnector<PostgresConfig, PostgresConnection>
    • Added support for BYTEA fields. (#57)
    • Added the PostgresConnection interface extending PostgresLink.
    • Removed the Receiver interface. These methods are now a part of PostgresConnection.
    • Removed the Quoter Interface. These methods are now a part of PostgresExecutor.
    Open source →
    Release notes

    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

    Open source →
    Release notes

    What's Changed

    Nested transactions have been refactored to be created simply with PostgresTransaction::beginTransaction() instead of needing to wrap a PostgresTransaction into a PostgresNestableTransaction. 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] and amphp/[email protected]. Removed PostgresNestableTransaction.
    • Added PostgresConnection interface extending the base interface Connection from amphp/sql.
    • Merged PostgresQuoter methods into PostgresExecutor and removed PostgresQuoter.
    • Moved PostgresReceiver methods into PostgresConnection and removed PostgresReceiver.

    Full Changelog: v2.0.0-beta.4...v2.0.0-beta.5

    Open source →
    Release notes
    • Fixed statements used in a nested transaction potentially deadlocking when using ext-pgsql.
    Open source →
    Release notes
    • Added support for BYTEA fields. (#57)
    • Added PostgresNestableTransaction which may be optionally used to create a PostgresLink from a PostgresTransaction object. Nested transactions are implemented using savepoints.
    • PostgresExecutor now extends PostgresQuoter, moving the interface lower in the interface hierarchy.
    Open source →
  6. v2.0.0-beta.6 17 Dec 2023 pre-release

    Nothing published for this version

  7. v2.0.0-beta.5 09 Dec 2023 pre-release

    Nothing published for this version

  8. v2.0.0-beta.4 07 May 2023 pre-release

    Nothing published for this version

  9. v2.0.0-beta.3 01 May 2023 pre-release

    Nothing published for this version

  10. v2.0.0-beta.2 18 Dec 2022 pre-release

    Nothing published for this version

  11. v2.0.0-beta.1 17 Jul 2022 pre-release

    Nothing published for this version

  12. v1.4.5 06 Jan 2023
    Release notes
    • Fixed cancelling an active query if a connection is closed when using ext-pgsql (#54)
    Open source →
  13. v1.4.4 18 Dec 2022

    Nothing published for this version

  14. v1.4.3 04 Dec 2021

    Nothing published for this version

  15. v1.4.2 20 Sep 2021

    Nothing published for this version

  16. v1.4.1 25 Aug 2021

    Nothing published for this version

  17. v1.4.0 16 Aug 2021

    Nothing published for this version

  18. v1.3.3 28 Jan 2021

    Nothing published for this version

  19. v1.3.2 06 Dec 2020

    Nothing published for this version

  20. v1.3.1 11 Aug 2020

    Nothing published for this version

  21. v1.3.0 01 Aug 2020

    Nothing published for this version

  22. v1.2.1 13 Feb 2020

    Nothing published for this version

  23. v1.2.0 06 Feb 2020

    Nothing published for this version

  24. v1.1.1 16 Jan 2020

    Nothing published for this version

  25. v1.1.0 30 Sep 2019

    Nothing published for this version

  26. v1.0.4 04 Apr 2019

    Nothing published for this version

  27. v1.0.3 14 Mar 2019

    Nothing published for this version

  28. v1.0.2 13 Nov 2018

    Nothing published for this version

  29. v1.0.1 30 Oct 2018

    Nothing published for this version

  30. v1.0.0 14 Oct 2018

    Nothing published for this version

  31. v0.2.1 15 Dec 2017

    Nothing published for this version

  32. v0.2.0 12 Dec 2017

    Nothing published for this version

  33. v0.1.2 28 Jul 2017

    Nothing published for this version

  34. v0.1.1 22 Jun 2017

    Nothing published for this version

  35. v0.1.0 21 Jun 2017

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive