Bug fixes
- RDS IAM passthrough now correctly validates tokens against the database they were created in multi-database configurations, e.g., primary and replicas @matslina
- Correctly handle RDS IAM passthrough tokens signed by the AWS Go SDK @matslina
- Correct client authentication flow, allowing tools like HAProxy and
pg_isreadyto work with PgDog without it logging an authentication error @levkk - Handle underflow in cross-shard
DISTINCT ONwith ordinal column arguments @murex971 - [Enterprise] Globally distributed sequence was not applied to
INTEGERcolumns @levkk - Handle older versions of
pgdog.tomlandusers.tomlconfiguration files without crashing @meskill - Timestamps in cross-shard aggregate results were adding unnecessary zeros in the millisecond field, breaking acceptance tests @murex971
- Checkout timeout could cause incorrect active server counts on pools, breaking
least_active_connectionsload balancing @meskill - Correctly handle cross-shard
COPYthat doesn't supply the column list, e.g.,COPY users FROM [...] - Cross-shard
AVG()now usesSUMinstead of averages of averages which could lose precision @murex971 - Correctly handle cross-shard
OFFSETwithout aLIMITand return an error forLIMIT/OFFSETwe currently don't support @murex971
Features
- Add support for cross-shard
DISTINCTandCOUNT(DISTINCT), incl. aggregation @murex971 - Add support for cross-shard
ORDER BYover aggregate functions, e.g.,ORDER BY count(*)@murex971 - [WIP] Crash safety for online resharding @meskill
- Support for routing queries to specific replicas using configured labels and a query comment & session parameter. @levkk
- PgDog will now drop idle connections immediately upon receiving the shutdown signal. This helps with rolling updates & blue/green deployments for databases that are maxed out on available connections. @levkk
- Add configurable replica lag handling for queries that request a specific LSN. Queries can now fail or wait for the LSN to become available @meskill
- Support
DATEdata type for cross-shard ordering and aggregate functions @murex971 - PgDog now answers empty queries without talking to Postgres (e.g.,
;). This allows for faster application-side connection health checks, removing one network hop @levkk
Security
- Update dependencies @meskill
Code quality
- Move more crates and configuration into the workspace
Cargo.toml@meskill
Full Changelog: v0.1.66...v0.1.67