| Crates.io | pg_async |
| lib.rs | pg_async |
| version | 0.8.7 |
| created_at | 2016-12-26 15:21:42.335435+00 |
| updated_at | 2024-12-19 08:10:25.052128+00 |
| description | Asynchronous, HA (master-master) PostgreSQL driver on top of libpq |
| homepage | |
| repository | https://github.com/ArtemGr/pg_async.rs |
| max_upload_size | |
| id | 7783 |
| size | 92,146 |
Asynchronous, HA (master-master) PostgreSQL driver on top of libpq.
libpq, leveraging it's asynchronous support.SELECT 1) to see who's closer/faster.futures.futures are backed by a thread or two and can be used without a tokio reactor (because KISS).Future allows the driver to cancel it.The combination of libpq and OpenSSL doesn't work very well during PostgreSQL server restarts. I've seen libpq SEGV-crash reliably when the OpenSSL layer is enabled. For the driver to properly work around PostgreSQL server unavailability and restarts I recommend adding the "sslmode=disable" disabler to the connection strings.