Steven Fackler
349c38b1fe
Release postgres-protocol v0.6.2
2021-09-29 19:27:15 -04:00
Steven Fackler
c7785d0b10
Release postgres-types v0.2.2
2021-09-29 19:24:46 -04:00
Steven Fackler
3854aecbb1
Merge pull request #825 from lnicola/gate-doctests
...
Add feature gates for doctests
2021-09-25 13:13:15 -04:00
Laurențiu Nicola
34d8b77644
Add feature gates for doctests
2021-09-25 20:04:41 +03:00
Steven Fackler
031e4e3832
Merge pull request #824 from lnicola/time-0.3
...
Add support for time 0.3
2021-09-24 07:57:41 -04:00
Laurențiu Nicola
be0d71fad5
Add support for time 0.3
2021-09-24 08:26:37 +03:00
Steven Fackler
3e4be86531
more clippy
2021-08-10 21:17:50 -04:00
Steven Fackler
a8a35eb6db
fix clippy
2021-08-10 21:07:20 -04:00
Steven Fackler
be0c85ac0b
Update phf
2021-08-10 20:30:27 -04:00
Steven Fackler
d95eb353dd
Merge pull request #813 from abizjak/master
...
Implement BorrowToSql for an additional type.
2021-07-25 16:58:46 -04:00
Aleš Bizjak
da4e323578
Implement BorrowToSql for an additional type.
...
Closes #811 .
2021-07-25 22:02:28 +02:00
Steven Fackler
99aa7801be
Merge pull request #808 from sfackler/dependabot/cargo/env_logger-0.9
...
Update env_logger requirement from 0.8 to 0.9
2021-07-15 09:36:57 -04:00
dependabot[bot]
24928ebce3
Update env_logger requirement from 0.8 to 0.9
...
Updates the requirements on [env_logger](https://github.com/env-logger-rs/env_logger ) to permit the latest version.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-15 13:10:25 +00:00
Steven Fackler
8e2e90a161
Merge pull request #806 from LukasKalbertodt/add-from-to-sql-arrays
...
Add `FromSql` and `ToSql` impls for arrays (guarded behind feature)
2021-07-13 14:13:01 -04:00
Lukas Kalbertodt
06952e2bb0
Use Rust 1.51 in CI
...
We needed to bump the version because the `array-impls` feature
requires const generics.
2021-07-13 16:03:35 +02:00
Lukas Kalbertodt
6c1542f634
Add FromSql
and ToSql
impls for arrays (guarded behind feature)
...
This is feature-gated because those impls require Rust 1.51.
2021-07-13 16:03:35 +02:00
Steven Fackler
9ead59e302
Merge pull request #800 from jrsmith17/master
...
Making Postgres Types Documentation More Explict For Feature Flags
2021-07-11 16:08:57 -04:00
JR Smith
3b7b8000ce
Made requirement of setting feature flags to access derive macros more explicit in the documentation.
2021-07-01 16:04:19 -04:00
Steven Fackler
3eb5a4dab9
actually fix clippy
2021-06-23 20:15:57 -04:00
Steven Fackler
8f7481a86c
fix clippy
2021-06-23 20:02:51 -04:00
Steven Fackler
57cacb65fe
Upgrade phf
2021-06-21 21:30:41 -04:00
Steven Fackler
ff7d88f901
Merge pull request #783 from timando/master
...
Add support for eui48 version 1.0
2021-06-02 21:07:36 -04:00
Tim Anderson
a8383dcc29
Add support for eui48 version 1.0
2021-06-03 10:54:37 +10:00
Steven Fackler
0c064a9f31
Merge pull request #780 from mpajkowski/650/simple-query-row-getter
...
expose SimpleQueryRow's column names
2021-05-30 11:59:56 -04:00
Marcin Pajkowski
b03ffcd043
expose SimpleQueryRow's column names
2021-05-29 23:44:17 +02:00
Steven Fackler
3390cf33ed
Merge pull request #777 from petrosagg/buffered-io
...
tokio-postgres: buffer sockets to avoid excessive syscalls
2021-05-24 13:38:45 -04:00
Petros Angelatos
ca6d4b8162
tokio-postgres: buffer sockets to avoid excessive syscalls
...
The current implementation forwards all read requests to the operating
system through the socket causing excessive system calls. The effect is
magnified when the underlying Socket is wrapped around a TLS
implementation.
This commit changes the underlying socket to be read-buffered by default
with a buffer size of 16K, following the implementation of the official
client.
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-05-24 17:58:30 +02:00
Steven Fackler
52de269367
fix clippy
2021-05-18 20:47:26 -04:00
Steven Fackler
1986cb1775
Merge pull request #773 from erikjohnston/avoid_deadlock
...
Fix deadlock when pipelining statements.
2021-05-18 20:45:58 -04:00
Erik Johnston
844a1bd145
Revert change back to always setting the cached statement
2021-05-15 10:25:14 +01:00
Erik Johnston
b7215c60d9
Split State into two.
...
There is no reason for the buffer and typeinfo caches to share the same
lock. By splitting them it means we a) get slightly better performance,
but more importantly b) it makes it harder to accidentally deadlock.
2021-05-14 15:20:36 +01:00
Erik Johnston
a84a45d88e
Fix deadlock when pipelining statements.
...
When executing statements in parallel there is a race where we prepare
the type info queries multiple times, and so insert into the type info
caches multiple times. This resulted in any existing cached `Statement`
to be dropped, running its destructor which attempts to take out the
state lock that is already being held, resulting in a deadlock.
Fixes #772 .
2021-05-14 14:59:07 +01:00
Steven Fackler
3073435009
Merge pull request #761 from sfackler/dependabot/cargo/hmac-0.11
...
Update hmac requirement from 0.10 to 0.11
2021-04-29 17:14:45 -04:00
Steven Fackler
4e8b9078a1
fix build
2021-04-29 17:07:24 -04:00
dependabot[bot]
83616fadb5
Update hmac requirement from 0.10 to 0.11
...
Updates the requirements on [hmac](https://github.com/RustCrypto/MACs ) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/MACs/releases )
- [Commits](https://github.com/RustCrypto/MACs/compare/hmac-v0.10.0...hmac-v0.11.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-29 21:02:13 +00:00
Steven Fackler
939218cac1
Merge pull request #760 from sfackler/dependabot/add-v2-config-file
...
Upgrade to GitHub-native Dependabot
2021-04-29 17:00:31 -04:00
Steven Fackler
0f0de8c34d
Update dependabot.yml
2021-04-29 17:00:22 -04:00
dependabot-preview[bot]
20f0d76459
Upgrade to GitHub-native Dependabot
2021-04-29 20:58:01 +00:00
Steven Fackler
36916bec38
Release v0.7.2
2021-04-25 10:52:25 -04:00
Steven Fackler
91ce9cdeec
fix clippy
2021-04-24 10:34:51 -04:00
Steven Fackler
05a0643cc0
Fix matching on SqlState
...
Closes #756
2021-04-24 10:19:23 -04:00
Steven Fackler
c7a8adf2df
remove unneeded ref
2021-04-05 19:07:27 -04:00
Steven Fackler
50fa995cf9
Reorder a bit
2021-04-05 19:04:34 -04:00
Steven Fackler
a8ac31aa0f
Merge pull request #724 from vemoo/transaction-client-method
...
add `client` method to `GenericClient`
2021-04-05 19:02:37 -04:00
Steven Fackler
2ab49f6c56
Release postgres v0.19.1
2021-04-03 17:14:25 -04:00
Steven Fackler
57164c7e59
Release tokio-postgres v0.7.1
2021-04-03 17:12:50 -04:00
Steven Fackler
32524569c2
Release postgres-types v0.2.1
2021-04-03 17:10:03 -04:00
Steven Fackler
a598c52906
Release postgres-protocol v0.6.1
2021-04-03 17:06:51 -04:00
Steven Fackler
844a27a074
Add clear_type_cache to blocking client
2021-04-03 16:55:59 -04:00
Steven Fackler
21e4dd7a98
Merge pull request #754 from pleshevskiy/task-753
...
feat: add method to clear types cache
2021-04-03 16:49:28 -04:00