Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to rust-postgres v0.7.12 #5

Open
wants to merge 228 commits into
base: pgbouncer-mode
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
ed05675
derive generic FromSql/ToSql
matt-duch Aug 9, 2022
b46ea89
Add hostaddr support
trungda Aug 26, 2022
faedb49
Merge branch 'master' into tdinh/hostaddr
trungda Aug 27, 2022
3c9315e
IpAddr + try hostaddr first
trungda Aug 27, 2022
e30bff6
also update postgres
trungda Aug 27, 2022
6c49a45
fmt
trungda Aug 27, 2022
42fef24
explicitly handle host being None
trungda Aug 28, 2022
9b34d74
add negative test
trungda Aug 28, 2022
8ac10ff
move test to runtime
trungda Aug 31, 2022
3827b2e
derive bounds on generics
matt-duch Aug 26, 2022
1e944c4
Merge pull request #931 from matt-duch/derive-generic
sfackler Sep 7, 2022
dfe3bc0
Release v0.4.3
sfackler Sep 7, 2022
e5f7f8e
Update criterion requirement from 0.3 to 0.4
dependabot[bot] Sep 12, 2022
71668b7
Merge pull request #949 from sfackler/dependabot/cargo/criterion-0.4
sfackler Sep 12, 2022
7faeea5
Fix clippy/deprecation warnings
sfackler Nov 21, 2022
6c18ac0
rustfmt
sfackler Nov 21, 2022
6557bca
more clippy
sfackler Nov 21, 2022
f48c3b5
more deprecations
sfackler Nov 21, 2022
b29164d
Add idle session timeout error
jkosh44 Nov 21, 2022
664345f
Update PostgreSQL files to most recent version
jkosh44 Nov 21, 2022
f413e66
Add support for multiranges
jkosh44 Nov 21, 2022
0c86f93
Add multirange kind and run cargo fmt
jkosh44 Nov 21, 2022
5ebe602
Merge pull request #963 from jkosh44/idle-session-timeout
sfackler Nov 22, 2022
eaa1c62
Update env_logger requirement from 0.9 to 0.10
dependabot[bot] Nov 25, 2022
cb82025
Merge pull request #965 from sfackler/dependabot/cargo/env_logger-0.10
sfackler Nov 25, 2022
be90d0e
derive Debug for SimpleQueryMessage
xxchan Dec 7, 2022
44202ad
Merge pull request #967 from xxchan/xxchan/missing-guan
sfackler Dec 7, 2022
748167d
Update base64 requirement from 0.13 to 0.20
dependabot[bot] Dec 12, 2022
97db777
Merge pull request #969 from sfackler/dependabot/cargo/base64-0.20
sfackler Dec 12, 2022
0550bab
Merge branch 'sfackler:master' into tdinh/hostaddr
trungda Dec 27, 2022
3697f6b
Add hostaddr support
trungda Aug 26, 2022
48874dc
IpAddr + try hostaddr first
trungda Aug 27, 2022
d97bed6
also update postgres
trungda Aug 27, 2022
1a9c1d4
fmt
trungda Aug 27, 2022
58149da
explicitly handle host being None
trungda Aug 28, 2022
7a648ad
add negative test
trungda Aug 28, 2022
a70a7c3
move test to runtime
trungda Aug 31, 2022
b0596f7
Merge branch 'tdinh/hostaddr' of github.com:trungda/rust-postgres int…
trungda Dec 27, 2022
d368475
Add flush() to front-end messages
penberg Dec 30, 2022
9774c33
Merge pull request #973 from penberg/flush
sfackler Dec 30, 2022
8ab8f1a
Clippy
sfackler Dec 30, 2022
0c05614
Clarify poll_message docs
sfackler Jan 2, 2023
e38e435
add batch_execute to generic client
aDogCalledSpot Jan 8, 2023
383fd50
Update tokio-postgres/src/generic_client.rs
sfackler Jan 8, 2023
c359026
Merge pull request #980 from aDogCalledSpot/batch-execute-in-generic-…
sfackler Jan 8, 2023
c5cb28b
Update base64 requirement from 0.20 to 0.21
dependabot[bot] Jan 9, 2023
10bf271
fix build
sfackler Jan 10, 2023
56fb0d0
Merge pull request #981 from sfackler/dependabot/cargo/base64-0.21
sfackler Jan 10, 2023
cf77dc0
futures-util <0.3.14 doesn't have Stream
palfrey Jan 10, 2023
f4d8d60
Merge pull request #982 from palfrey/upgrade-futures-util
sfackler Jan 10, 2023
205af89
feat: add `rows_affected` to RowStream
skyzh Jan 16, 2023
b184239
update comments
skyzh Jan 17, 2023
4bae134
Merge pull request #985 from risinglightdb/skyzh/raw-stream
sfackler Jan 20, 2023
eb086d3
export Bytes type through DataRowBody::storage_bytes method.
fakeshadow Feb 24, 2023
842eace
fix ci
sfackler Feb 25, 2023
63c09eb
fix workflow deprecations
sfackler Feb 25, 2023
7c7c80d
Make incorrect number of paramaters an error
SvizelPritula Feb 23, 2023
4f54069
Merge pull request #999 from SvizelPritula/master
sfackler Feb 25, 2023
3007dd8
Merge pull request #1000 from fakeshadow/protocol/export_bytes
sfackler Feb 26, 2023
7cd7b18
Rename accessor
sfackler Feb 26, 2023
1e1f907
Update syn requirement from 1.0 to 2.0
dependabot[bot] Mar 20, 2023
e9b5a04
Fix build
sfackler Mar 21, 2023
7061671
Merge pull request #1005 from sfackler/dependabot/cargo/syn-2.0
sfackler Mar 21, 2023
b4c05f4
wire through knob for TCP user timeout
pH14 Mar 24, 2023
ee5a139
add in to param parsing; update doc
pH14 Mar 24, 2023
071dfa3
added a rename_all container attribute for enums and structs
JaydenElliott Mar 26, 2023
bc8ad8a
Distinguish between field and container attributes when parsing
JaydenElliott Mar 27, 2023
d509b3b
Replaced case conversion with heck
JaydenElliott Mar 27, 2023
a9967c0
docs: mention sys default if 0
pH14 Mar 27, 2023
62a4432
use correct error type
pH14 Mar 27, 2023
c85b2c1
Merge pull request #1007 from pH14/add-tcp-user-timeout
sfackler Mar 27, 2023
58f0661
Update socket2 requirement from 0.4 to 0.5
dependabot[bot] Mar 27, 2023
a205d23
Update Cargo.toml
sfackler Mar 27, 2023
9c0d2dd
Update ci.yml
sfackler Mar 27, 2023
39fa1ad
Merge pull request #1003 from sfackler/dependabot/cargo/socket2-0.5
sfackler Mar 27, 2023
5be97d9
Release postgres-types v0.2.5
sfackler Mar 27, 2023
a467967
Release postgres-protocol v0.6.5
sfackler Mar 27, 2023
54390eb
Release postgres-derive v0.4.4
sfackler Mar 27, 2023
117e387
Release tokio-postgres v0.7.8
sfackler Mar 27, 2023
cf9747e
Add tcp_user_timeout to postgres
sfackler Mar 27, 2023
7d5962e
Add RowIter::rows_affected
sfackler Mar 27, 2023
65a68df
Release postgres v0.19.5
sfackler Mar 27, 2023
f4b181a
Rename_all attribute documentation
JaydenElliott Mar 28, 2023
b19fdd4
Fix postgres-protocol constraint
sfackler Mar 30, 2023
45d51d7
OpenBSD misses some TCP keepalive options
niklasha Apr 4, 2023
e59a165
rustfmt
niklasha Apr 4, 2023
7dd6813
Merge pull request #1014 from niklasha/openbsd-missing-tcp-keepalive-…
sfackler Apr 4, 2023
a67fe64
refactor(types): simplify `<&str as ToSql>::to_sql`
BastiDood Apr 7, 2023
98abdf9
refactor(types): prefer `matches!` macro for readability
BastiDood Apr 7, 2023
8b9b5d0
Merge pull request #1018 from BastiDood/str-to-sql-refactor
sfackler Apr 7, 2023
e71335e
fix serialization of oidvector
sfackler May 1, 2023
8449e4d
Merge pull request #1027 from sfackler/oidvector
sfackler May 1, 2023
d92b3b0
Fix int2vector serialization
sfackler May 1, 2023
23d2524
Merge pull request #1028 from sfackler/int2vector
sfackler May 1, 2023
80adf04
allow `BorrowToSql` for non-static `Box<dyn ToSql>`
laptou May 7, 2023
066b466
Update ci.yml
sfackler May 7, 2023
22469d6
Merge pull request #1029 from laptou/master
sfackler May 7, 2023
4095490
Update criterion requirement from 0.4 to 0.5
dependabot[bot] May 24, 2023
762f67f
Merge pull request #1037 from sfackler/dependabot/cargo/criterion-0.5
sfackler May 24, 2023
64bf779
feat: add support for wasm
zebp Jun 3, 2023
2230e88
add CI job for checking wasm
zebp Jun 3, 2023
edc7fde
gate wasm support behind feature flag
zebp Jun 4, 2023
1f8fb7a
ignore dev deps in wasm ci
zebp Jun 8, 2023
635bac4
specify js feature for wasm ci
zebp Jun 9, 2023
852869d
Merge pull request #1040 from zebp/feat/wasm-support
sfackler Jun 10, 2023
6f19bb9
clean up wasm32 test
sfackler Jun 10, 2023
790af54
Merge pull request #1008 from JaydenElliott/feature/rename_all_attr
sfackler Jun 10, 2023
258fe68
feat(derive): add `#[postgres(allow_mismatch)]`
viniciusth Apr 30, 2023
4f41157
Merge pull request #945 from trungda/tdinh/hostaddr
sfackler Jul 17, 2023
b09e9cc
Add to_sql for bytes Cow as well
andrewbaxter Jul 20, 2023
34c8dc9
Fixes
Jul 20, 2023
d16a9cd
Merge pull request #1051 from andrewbaxter/patch-1
sfackler Jul 20, 2023
f7a2644
align hostaddr tls behavior with documentation
sfackler Jul 23, 2023
b575745
fix test
sfackler Jul 23, 2023
3346858
Implement load balancing
sfackler Jul 23, 2023
babc856
clippy
sfackler Jul 23, 2023
84aed63
fix wasm build
sfackler Jul 23, 2023
d451465
Merge pull request #1052 from sfackler/load-balance
sfackler Jul 23, 2023
e7eb24a
Merge pull request #1026 from viniciusth/feature/allow-mismatch
sfackler Jul 23, 2023
98814b8
Set user to executing processes' user by default.
ISibboI Aug 19, 2023
4c4059a
Propagate changes from `tokio-postgres` to `postgres`.
ISibboI Aug 19, 2023
7a5b19a
Update Rust version in CI to 1.67.0.
ISibboI Aug 19, 2023
f777f74
Merge pull request #1059 from ISibboI/master
sfackler Aug 19, 2023
a454378
Restore back compat
sfackler Aug 19, 2023
496f46c
Release postgres-protocol v0.6.6
sfackler Aug 20, 2023
43e1569
Release postgres-derive v0.4.5
sfackler Aug 20, 2023
6f7ab44
Release postgres-types v0.2.6
sfackler Aug 20, 2023
3d0a593
Release tokio-postgres v0.7.9
sfackler Aug 20, 2023
e08a38f
sync postgres config up with tokio-postgres
sfackler Aug 20, 2023
f45527f
remove bogus docs
sfackler Aug 20, 2023
75cc986
Release postgres v0.19.6
sfackler Aug 20, 2023
cb609be
Defer username default
sfackler Aug 25, 2023
b411e5c
clippy
sfackler Aug 25, 2023
016e9a3
avoid a silly clone
sfackler Aug 25, 2023
234e20b
bump ci version
sfackler Aug 25, 2023
c50fcbd
Release tokio-postgres v0.7.10
sfackler Aug 25, 2023
c5ff8cf
Release postgres v0.19.7
sfackler Aug 25, 2023
b1306a4
remove rustc-serialize dependency
ds-cbo Oct 20, 2023
ea9e0e5
replace deprecated chrono::DateTime::from_utc
ds-cbo Oct 30, 2023
b4ebc4e
add missing import
ds-cbo Oct 30, 2023
19a6ef7
fix more deprecated chrono functions
ds-cbo Oct 31, 2023
ab23ca8
Merge pull request #1077 from ds-cbo/fix-deprecated-chrono-func
sfackler Oct 31, 2023
a8caff1
Merge remote-tracking branch 'upstream/master' into remove-rustc-seri…
ds-cbo Nov 3, 2023
cc93651
Merge pull request #1074 from ds-cbo/remove-rustc-serialize-dependency
sfackler Nov 3, 2023
863c1d6
fix code block
JamesGuthrie Nov 7, 2023
c5aef21
Merge pull request #1080 from JamesGuthrie/patch-1
sfackler Nov 7, 2023
10edbcb
Update lib.rs
sfackler Nov 7, 2023
02bab67
Add table_oid and field_id to columns of prepared statements
bikeshedder Dec 5, 2023
8787615
Simplify Debug impl of Column
bikeshedder Dec 5, 2023
eb3f595
Merge pull request #1084 from bikeshedder/table_oid_column_id
sfackler Dec 11, 2023
bbc0414
Update id types
sfackler Dec 12, 2023
90c92c2
feat(types): add default derive to json wrapper
TroyKomodo Jan 15, 2024
e8f44ec
Merge pull request #1093 from ScuffleTV/troy/add-default-json
sfackler Jan 15, 2024
2f150a7
Update env_logger requirement from 0.10 to 0.11
dependabot[bot] Jan 22, 2024
7bc3deb
Update ci.yml
sfackler Jan 23, 2024
a92c6eb
Update main.rs
sfackler Jan 23, 2024
8989fc9
Merge pull request #1097 from sfackler/dependabot/cargo/env_logger-0.11
sfackler Jan 23, 2024
289cf88
add #[track_caller] to the Row::get() functions
Feb 16, 2024
25314a9
Bump CI version
sfackler Feb 17, 2024
ba1b4cf
Merge pull request #1104 from njaard/master
sfackler Feb 17, 2024
a9ca481
Added ReadOnly session attr
chandr-andr Mar 3, 2024
6a01730
Added ReadOnly session attr
chandr-andr Mar 3, 2024
d6c2835
Merge pull request #1110 from chandr-andr/feature/add_read_only_sessi…
sfackler Mar 3, 2024
4217553
Update base64 requirement from 0.21 to 0.22
dependabot[bot] Mar 4, 2024
270a29b
Merge pull request #1112 from sfackler/dependabot/cargo/base64-0.22
sfackler Mar 4, 2024
9d7c43c
Shrink query_opt/query_one codegen size very slightly
novacrazy Feb 11, 2024
9743630
use `split_once` instead of `split` to parse lsn strings
laxjesse Mar 13, 2024
e528e01
Merge pull request #1118 from laxjesse/split_once_in_lsn_from_str
sfackler Mar 13, 2024
64caf4c
Merge pull request #1101 from Lantern-chat/async_size
sfackler Mar 17, 2024
3836a30
Make license metadata SPDX compliant
paolobarbolini Apr 10, 2024
8cf7f3a
Merge pull request #1130 from paolobarbolini/spdx
sfackler Apr 10, 2024
670cd7d
Update heck requirement from 0.4 to 0.5
dependabot[bot] Apr 10, 2024
98f5a11
Merge pull request #1117 from sfackler/dependabot/cargo/heck-0.5
sfackler Apr 10, 2024
3c6dbe9
Avoid extra clone in config if possible
nyurik May 2, 2024
d5d75d3
add simple_query to GenericClient in tokio_postgres
vsuryamurthy May 23, 2024
fbecae1
feat(types): add 'js' feature for wasm
duarten Mar 11, 2024
6cd4652
Add RowDescription to SimpleQueryMessage
rigby-dane May 29, 2024
7afead9
Formatting updates
rigby-dane May 29, 2024
eec0602
Clippy compliance
rigby-dane May 29, 2024
bd6350c
Formatting
rigby-dane May 30, 2024
f397668
Work with pools that don't support prepared statements
ramnivas May 26, 2024
84994da
Derive Clone for Row
levkk Jul 6, 2024
2b1949d
impl Debug for Statement
cammeresi Jul 6, 2024
0bd8b2b
Merge pull request #1153 from cammeresi/master
sfackler Jul 6, 2024
f9c2d5c
Merge pull request #1152 from levkk/levkk-add-clone-to-row
sfackler Jul 6, 2024
1f31219
Fix a few nits pointed out by clippy
cammeresi Jul 6, 2024
c2b5c8a
Merge pull request #1154 from cammeresi/master
sfackler Jul 6, 2024
263b006
Handle non-UTF8 error fields
sfackler Jul 6, 2024
7cbb462
Merge pull request #1155 from sfackler/non-utf8-error
sfackler Jul 6, 2024
20749d8
Merge pull request #1116 from duarten/postgres-types-js
sfackler Jul 6, 2024
34a68c0
Merge pull request #1142 from vsuryamurthy/add_simple_query_generic_c…
sfackler Jul 6, 2024
ded5e7d
Merge pull request #1137 from nyurik/use-string
sfackler Jul 6, 2024
cfd9163
PR Fix: Only use single clone for RowDescription
rigby-dane Jul 7, 2024
3f8f5de
Replace the state machine to process messages with a direct match sta…
ramnivas Jul 7, 2024
74eb4db
Remove query_raw_with_param_types as per PR feedback
ramnivas Jul 7, 2024
f00ed42
Merge remote-tracking branch 'origin/master' into exograph
ramnivas Jul 7, 2024
2647024
PR Fix: Clone first then move
rigby-dane Jul 8, 2024
647a925
Merge pull request #1144 from rigby-dane/add_row_description
sfackler Jul 9, 2024
dbd4d02
Address review comment to rename query_with_param_types to query_typed
ramnivas Jul 9, 2024
0fa3247
Fix a clippy warning
ramnivas Jul 10, 2024
257bcfd
Merge pull request #1147 from exograph/exograph
sfackler Jul 13, 2024
71c836b
query_typed tweaks
sfackler Jul 14, 2024
a1bdd0b
Merge pull request #1160 from sfackler/query-typed-cleanup
sfackler Jul 14, 2024
a0b2d70
Fix cancellation of TransactionBuilder::start
sfackler Jul 22, 2024
4b9cdca
Merge pull request #1162 from sfackler/transaction-builder-cancellation
sfackler Jul 22, 2024
c358077
Release postgres-protocol v0.6.7
sfackler Jul 22, 2024
6b4566b
Release postgres-types v0.2.7
sfackler Jul 22, 2024
9226618
Release tokio-postgres v0.7.11
sfackler Jul 22, 2024
9f196e7
Release postgres v0.19.8
sfackler Jul 22, 2024
6de0fce
Add jiff support
allan2 Jul 22, 2024
0fc4005
For `query_typed`, deal with the no-data case.
ramnivas Jul 22, 2024
3afcc3d
Merge pull request #1165 from exograph/query-typed-no-data
sfackler Jul 23, 2024
aa10f0d
Support AIX keepalive
ecnelises Jul 23, 2024
df2f37d
Remove unecessary alias for Timestamp
allan2 Jul 23, 2024
f00d208
Update impl for Timestamp
allan2 Jul 23, 2024
815a5d3
Remove impl for `Zoned`
allan2 Jul 23, 2024
d2634a4
Merge pull request #1166 from ecnelises/aix
sfackler Jul 24, 2024
e19b3dc
Rename PG_EPOCH
allan2 Aug 14, 2024
c96342d
Fix ToSql
allan2 Aug 14, 2024
afef88e
Add jiff tests and overflow checks
allan2 Aug 15, 2024
bc9102c
Remove `Zoned` from docs
allan2 Aug 15, 2024
5b26b5d
Fix `chrono::DateTime<Utc>` tests
allan2 Aug 15, 2024
2e6b7df
Merge pull request #1170 from allan2/chrono-test
sfackler Aug 16, 2024
6fd0444
Merge pull request #1164 from allan2/jiff
sfackler Aug 18, 2024
b1ace91
Release postgres-derive v0.4.6
sfackler Sep 16, 2024
776ea30
Release postgres-types v0.2.8
sfackler Sep 16, 2024
8d08adb
Release tokio-postgres v0.7.12
sfackler Sep 16, 2024
6916c17
Merge tag 'tokio-postgres-v0.7.12' into pgbouncer-mode
tmm1 Oct 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 40 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,60 +17,87 @@ jobs:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: sfackler/actions/rustup@master
- uses: sfackler/actions/rustfmt@master

clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: sfackler/actions/rustup@master
- run: echo "::set-output name=version::$(rustc --version)"
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
id: rust-version
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ~/.cargo/registry/index
key: index-${{ runner.os }}-${{ github.run_number }}
restore-keys: |
index-${{ runner.os }}-
- run: cargo generate-lockfile
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ~/.cargo/registry/cache
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: cargo fetch
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: target
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
- run: cargo clippy --all --all-targets

check-wasm32:
name: check-wasm32
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: sfackler/actions/rustup@master
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
id: rust-version
- run: rustup target add wasm32-unknown-unknown
- uses: actions/cache@v3
with:
path: ~/.cargo/registry/index
key: index-${{ runner.os }}-${{ github.run_number }}
restore-keys: |
index-${{ runner.os }}-
- run: cargo generate-lockfile
- uses: actions/cache@v3
with:
path: ~/.cargo/registry/cache
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: cargo fetch
- uses: actions/cache@v3
with:
path: target
key: check-wasm32-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: cargo check --target wasm32-unknown-unknown --manifest-path tokio-postgres/Cargo.toml --no-default-features --features js

test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: docker compose up -d
- uses: sfackler/actions/rustup@master
with:
version: 1.62.0
- run: echo "::set-output name=version::$(rustc --version)"
version: 1.74.0
- run: echo "version=$(rustc --version)" >> $GITHUB_OUTPUT
id: rust-version
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ~/.cargo/registry/index
key: index-${{ runner.os }}-${{ github.run_number }}
restore-keys: |
index-${{ runner.os }}-
- run: cargo generate-lockfile
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ~/.cargo/registry/cache
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
- run: cargo fetch
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: target
key: test-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"postgres-types",
"tokio-postgres",
]
resolver = "2"

[profile.release]
debug = 2
4 changes: 3 additions & 1 deletion codegen/src/errcodes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# errcodes.txt
# PostgreSQL error codes
#
# Copyright (c) 2003-2020, PostgreSQL Global Development Group
# Copyright (c) 2003-2022, PostgreSQL Global Development Group
#
# This list serves as the basis for generating source files containing error
# codes. It is kept in a common format to make sure all these source files have
Expand Down Expand Up @@ -222,6 +222,7 @@ Section: Class 22 - Data Exception
2203D E ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS too_many_json_array_elements
2203E E ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS too_many_json_object_members
2203F E ERRCODE_SQL_JSON_SCALAR_REQUIRED sql_json_scalar_required
2203G E ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE sql_json_item_cannot_be_cast_to_target_type

Section: Class 23 - Integrity Constraint Violation

Expand Down Expand Up @@ -428,6 +429,7 @@ Section: Class 57 - Operator Intervention
57P02 E ERRCODE_CRASH_SHUTDOWN crash_shutdown
57P03 E ERRCODE_CANNOT_CONNECT_NOW cannot_connect_now
57P04 E ERRCODE_DATABASE_DROPPED database_dropped
57P05 E ERRCODE_IDLE_SESSION_TIMEOUT idle_session_timeout

Section: Class 58 - System Error (errors external to PostgreSQL itself)

Expand Down
23 changes: 13 additions & 10 deletions codegen/src/pg_range.dat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# pg_range.dat
# Initial contents of the pg_range system catalog.
#
# Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
# Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# src/include/catalog/pg_range.dat
Expand All @@ -12,20 +12,23 @@

[

{ rngtypid => 'int4range', rngsubtype => 'int4', rngsubopc => 'btree/int4_ops',
{ rngtypid => 'int4range', rngsubtype => 'int4',
rngmultitypid => 'int4multirange', rngsubopc => 'btree/int4_ops',
rngcanonical => 'int4range_canonical', rngsubdiff => 'int4range_subdiff' },
{ rngtypid => 'numrange', rngsubtype => 'numeric',
rngsubopc => 'btree/numeric_ops', rngcanonical => '-',
rngsubdiff => 'numrange_subdiff' },
rngmultitypid => 'nummultirange', rngsubopc => 'btree/numeric_ops',
rngcanonical => '-', rngsubdiff => 'numrange_subdiff' },
{ rngtypid => 'tsrange', rngsubtype => 'timestamp',
rngsubopc => 'btree/timestamp_ops', rngcanonical => '-',
rngsubdiff => 'tsrange_subdiff' },
rngmultitypid => 'tsmultirange', rngsubopc => 'btree/timestamp_ops',
rngcanonical => '-', rngsubdiff => 'tsrange_subdiff' },
{ rngtypid => 'tstzrange', rngsubtype => 'timestamptz',
rngsubopc => 'btree/timestamptz_ops', rngcanonical => '-',
rngsubdiff => 'tstzrange_subdiff' },
{ rngtypid => 'daterange', rngsubtype => 'date', rngsubopc => 'btree/date_ops',
rngmultitypid => 'tstzmultirange', rngsubopc => 'btree/timestamptz_ops',
rngcanonical => '-', rngsubdiff => 'tstzrange_subdiff' },
{ rngtypid => 'daterange', rngsubtype => 'date',
rngmultitypid => 'datemultirange', rngsubopc => 'btree/date_ops',
rngcanonical => 'daterange_canonical', rngsubdiff => 'daterange_subdiff' },
{ rngtypid => 'int8range', rngsubtype => 'int8', rngsubopc => 'btree/int8_ops',
{ rngtypid => 'int8range', rngsubtype => 'int8',
rngmultitypid => 'int8multirange', rngsubopc => 'btree/int8_ops',
rngcanonical => 'int8range_canonical', rngsubdiff => 'int8range_subdiff' },

]
Loading