Commit Graph

2626 Commits

Author SHA1 Message Date
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
Dmitriy Pleshevskiy
558c169b89 feat: add method to clear types cache
Closes #753
2021-04-01 23:39:50 +03:00
Steven Fackler
fc10985f9f rustfmt 2021-03-28 20:31:59 -04:00
Steven Fackler
af7825308d fix clippy 2021-03-28 20:28:18 -04:00
Steven Fackler
b0492d45eb
Merge pull request #739 from the-anonymous009/error_kind
Make error kind public
2021-03-28 20:26:02 -04:00
hansolshin
71cb6eef68 Add is_closed method to Error 2021-03-28 23:00:49 +09:00
Steven Fackler
df0b7e214c
Merge pull request #750 from sfackler/socket2-bump
upgrade socket2
2021-03-18 20:51:14 -04:00
Steven Fackler
39736a6244 bump ci version to 1.46 2021-03-18 20:43:58 -04:00
Steven Fackler
49db9cd33c upgrade socket2 2021-03-18 20:39:43 -04:00
Steven Fackler
e15c9b1415
Merge pull request #749 from sfackler/actions
Switch CI to github actions
2021-03-16 20:50:53 -04:00
Steven Fackler
ead071b87c Remove readme badge 2021-03-16 20:48:02 -04:00
Steven Fackler
ad2c8cf592 clippy 2021-03-16 20:44:50 -04:00
Steven Fackler
85a6c95a69 switch CI to github actions 2021-03-16 20:24:16 -04:00
Steven Fackler
7da21e1af4
Merge pull request #737 from gjlondon/gjlondon-doc-fix
Fix minor docstring typo
2021-02-06 07:17:21 -05:00
George London
77cfee0da1 Fix minor docstring typo 2021-02-05 19:49:36 -08:00
Steven Fackler
2e61f7f7f3
Merge pull request #734 from michaelkirk/mkirk/geo-types-0.7
Added support for `geo-types` 0.7 via `with-geo-types-0_7` feature
2021-01-25 20:20:55 -05:00
Michael Kirk
8b8491f31d retain support for geo-types-0.6 2021-01-25 14:52:02 -06:00