NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #2061 most downloaded on crates.io
Dead simple async pool for tokio-postgres
Last release 1 months ago
26 Aug 2026
Release timing varies
gaps range from 4 weeks to 1.7 years
Nearly every release is documented
notes for 35 of 35 stable releases
1 version withdrawn
withdrawn after publishing
7 years old
36 releases · first in 2019
Release all deadpool crates
Release all deadpool crates
PREPARE instead of each sending their own. If that
preparation fails or is cancelled, one of the waiting tasks starts a fresh one
instead of failing along with it.1.85 and Rust edition to 2024tokio-postgres features:
with-bit-vec-0_9tokio-postgres dependency to version 0.7.14deadpool dependency to version 0.13.1Add missing re-export of LoadBalanceHosts
LoadBalanceHostsOne column per quarter.
Add back async_trait to the GenericClient trait. The removal of async_trait caused some errors for code using the generic client interface. A test was
async_trait to the GenericClient trait.
The removal of async_trait caused some errors for code using
the generic client interface. A test was added to ensure future
removals of async_trait will not cause this code to break.Expose API for providing a custom Connect implementation.
Connect implementation.+ Send to futures returned by GenericClientUpdate deadpool dependency to version 0.12
deadpool dependency to version 0.12LICENSE-APACHE and LICENSE-MIT files to published cratesUpdate deadpool dependency to version 0.11
deadpool dependency to version 0.11async_trait dependency1.75- Fix Config::url handling
Config::url handlingAdd load_balance_hosts to Config struct.
load_balance_hosts to Config struct.hostaddr and hostaddrs to Config struct.url field to Config struct. This enables parsing of
connection URLs.BREAKING: Disconnect immediately from the database when dropping clients. This is considered a breaking change as in previous versions the connections…
Connection object is now tied to the lifetime of the ClientWrapper
and dropped as soon as possible. The disconnect is not graceful and
you might see error messages in the database log.deadpool dependency to version 0.101.63 to match the one of tokioFix infinite recursion in GenericClient
GenericClient- Add GenericClient
GenericClientMake Transaction::statement_cache field public
Transaction::statement_cache field publicExport TargetSessionAttrs and ChannelBinding enums (part of Config struct)
TargetSessionAttrs and ChannelBinding enums (part of Config
struct)Config structs now implement Serialize
Serialize__Breaking:__ Replace config feature with serde (opted out by default)
config feature with serde (opted out by default)deadpool::managed::TimeoutsRuntime parameter to Config::create_pool methodfutures dependencyRemove generic parameter from Manager, Pool and Client types. This parameter was added by accident when deadpool switched to using associated types.
<T> parameter from Manager, Pool and Client
types. This parameter was added by accident when deadpool switched
to using associated types.Update tokio-postgres dependency to version 0.7.2 This crate depends on the GenericClient::client method which was added in tokio-postgres version 0.7
tokio-postgres dependency to version 0.7.2
This crate depends on the GenericClient::client method
which was added in tokio-postgres version 0.7.2.Remove deprecated from_env methods
config dependency to version 0.11from_env methodsManager::statement_caches field which provides access
to managing the statement cache for all clients.prepare to prepare_cached and prepare_typed to
prepare_typed_cached. This makes the non-caching prepare
methods available without having to dereference ClientWrapper
or Transaction objects first.rt_tokio_1 and rt_async-std_1 featuresRecyclingMethod::Fast by defaultUpdate tokio dependency to version 1
tokio dependency to version 1tokio-postgres dependency to version 0.7deadpool::managed::PoolConfigStatementCache::remove methodUpdate tokio dependency to version 0.3
tokio dependency to version 0.3tokio-postgres dependency to version 0.6Add Client::build_transaction method which makes it possible to use the TransactionBuilder with the statement cache.
Config::new methodClient::build_transaction method which makes it possible to
use the TransactionBuilder with the statement cache.RecyclingMethod::Clean which works similar to DISCARD ALL
but makes sure the statement cache is not rendered ineffective.RecyclingMethod::Custom which allows to execute arbitary SQL
when recycling connections.tokio_postgres crateAdd Manager::from_config, ManagerConfig and RecyclingMethod which makes it possible to specify how connections are recycled. The current default recyc
Config::from_envManager::from_config, ManagerConfig and RecyclingMethod which
makes it possible to specify how connections are recycled. The current
default recycling method is Verified which is the same as before. The
upcoming 0.6 release of this crate will change the default to Fast.Implement DerefMut for Transaction wrapper
DerefMut for Transaction wrappertransaction method to Transaction wrapperAdd #[derive(Clone)] to Config struct
#[derive(Clone)] to Config structconfig module publicDisable default-features for deadpool dependency
default-features for deadpool dependency- Fix windows support
- Add support for config crate
config crateprepare and prepare_typed now accept a &self instead of &mut self which fixes support for pipelining.
prepare and prepare_typed now accept a &self instead of &mut self
which fixes support for pipelining.- Add PoolError type alias
PoolError type aliasAdd back DerefMut implementation for deadpool_postgres::Client which makes it compatible with code expecting &mut tokio_postgres::Client.
tokio-postgres 0.5.1DerefMut implementation for deadpool_postgres::Client which
makes it compatible with code expecting &mut tokio_postgres::Client.Client::prepare_typed and
Transaction::prepare_typed.Rename Client struct to ClientWrapper
Client struct to ClientWrapperClient type aliasAdd StatementCache struct with the functions size and clear which are now accessible via Connection::statement_cache and Transaction::statement_cache.
StatementCache struct with the functions size and clear which
are now accessible via Connection::statement_cache and
Transaction::statement_cache.Manager::recycle to a non
consuming API.Improve example in README.md and crate root
docs.rsREADME.md and crate rootTransaction::commit and Transaction::rollbackUpdate to tokio 0.2 and tokio-postgres 0.5.0-alpha.2
tokio 0.2 and tokio-postgres 0.5.0-alpha.2deadpool_postgres::Client no longer implements DerefMut which was not needed anyways.
deadpool_postgres::Client no longer implements DerefMut which was not
needed anyways.deadpool_postgres::Client.transaction now returns a wrapped transaction
object which utilizes the statement cache of the wrapped client.<!-- next-url --> [Unreleased]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.14.2...HEAD [0.14.2]: https://github.com/deadpool
<!-- next-url --> [Unreleased]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.14.2...HEAD [0.14.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.14.1...deadpool-postgres-v0.14.2 [0.14.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.14.0...deadpool-postgres-v0.14.1 [0.14.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.13.2...deadpool-postgres-v0.14.0 [0.13.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.13.1...deadpool-postgres-v0.13.2 [0.13.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.13.0...deadpool-postgres-v0.13.1 [0.13.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.12.1...deadpool-postgres-v0.13.0 [0.12.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.12.0...deadpool-postgres-v0.12.1 [0.12.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.11.0...deadpool-postgres-v0.12.0 [0.11.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.5...deadpool-postgres-v0.11.0 [0.10.5]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.4...deadpool-postgres-v0.10.5 [0.10.4]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.3...deadpool-postgres-v0.10.4 [0.10.3]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.2...deadpool-postgres-v0.10.3 [0.10.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.1...deadpool-postgres-v0.10.2 [0.10.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.10.0...deadpool-postgres-v0.10.1 [0.10.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.9.0...deadpool-postgres-v0.10.0 [0.9.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.8.1...deadpool-postgres-v0.9.0 [0.8.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.8.0...deadpool-postgres-v0.8.1 [0.8.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.7.0...deadpool-postgres-v0.8.0 [0.7.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.6.0...deadpool-postgres-v0.7.0 [0.6.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.6...deadpool-postgres-v0.6.0 [0.5.6]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.5...deadpool-postgres-v0.5.6 [0.5.5]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.4...deadpool-postgres-v0.5.5 [0.5.4]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.3...deadpool-postgres-v0.5.4 [0.5.3]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.2...deadpool-postgres-v0.5.3 [0.5.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.1...deadpool-postgres-v0.5.2 [0.5.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.5.0...deadpool-postgres-v0.5.1 [0.5.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.4.3...deadpool-postgres-v0.5.0 [0.4.3]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.4.2...deadpool-postgres-v0.4.3 [0.4.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.4.1...deadpool-postgres-v0.4.2 [0.4.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.4.0...deadpool-postgres-v0.4.1 [0.4.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.3.0...deadpool-postgres-v0.4.0 [0.3.0]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.2.3...deadpool-postgres-v0.3.0 [0.2.3]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.2.2...deadpool-postgres-v0.2.3 [0.2.2]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.2.1...deadpool-postgres-v0.2.2 [0.2.1]: https://github.com/deadpool-rs/deadpool/compare/deadpool-postgres-v0.2.0...deadpool-postgres-v0.2.1 [0.2.0]: https://github.com/deadpool-rs/deadpool/releases/tag/deadpool-postgres-v0.2.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →