Skip to content

Update aurora-dsql-connectors to v0.2.0#2

Open
amaksimo wants to merge 4 commits into
mainfrom
update-dsql-connector-v0.2.0
Open

Update aurora-dsql-connectors to v0.2.0#2
amaksimo wants to merge 4 commits into
mainfrom
update-dsql-connector-v0.2.0

Conversation

@amaksimo
Copy link
Copy Markdown
Collaborator

@amaksimo amaksimo commented Mar 16, 2026

Summary

  • Bump aurora-dsql-connectors/go/pgx from v0.1.2 to v0.2.0
  • Pool config fields (MaxConns, MinConns, MaxConnLifetime, MaxConnIdleTime) were removed from dsql.Config in v0.2.0; pass them via a separate pgxpool.Config to dsql.NewPool instead
  • Transitive AWS SDK dependencies updated to match

Connector changelog (v0.1.2 → v0.2.0)

v0.2.0 — Breaking: pool config via pgxpool.Config

  • Removed pool configuration fields from dsql.Config (MaxConns, MinConns, MaxConnLifetime, MaxConnIdleTime, HealthCheckPeriod)
  • NewPool now accepts an optional *pgxpool.Config parameter, exposing the full pgxpool configuration surface directly
  • Motivation: without MaxConnLifetimeJitter, all pool connections expire simultaneously causing a thundering herd of reconnections requiring IAM token generation
  • NewPool(ctx, config) still applies DSQL defaults (55min lifetime, 10min idle)
  • NewPool(ctx, config, poolCfg) gives full control over pool settings
  • BeforeConnect callbacks are chained (user callbacks run first, then IAM token injection)

v0.1.3 — Token cache removal

  • Removed token caching from connection pool. Token generation is a local SigV4 presigning operation with no network overhead, so caching added complexity for zero benefit
  • The TokenCache field and ClearTokenCache() method were removed from Pool
  • Updated AWS SDK Go v2 dependencies to latest patch versions

Full upstream changelog: awslabs/aurora-dsql-connectors@go/pgx/v0.1.2...go/pgx/v0.2.0

Test plan

  • Verify compilation passes (go build ./...)
  • Run existing DSQL integration tests

amaksimo added 4 commits March 9, 2026 15:31
Add support for Amazon Aurora DSQL as a storage engine for OpenFGA.

- Add DSQL-specific migrations adapted for DSQL constraints (ASYNC
  index creation, NO TRANSACTION DDL, epoch-based goose table IDs,
  full indexes instead of partial)
- Add OCC retry logic with exponential backoff for write operations
- Skip FOR UPDATE clause (DSQL uses OCC at commit time)
- Use aurora-dsql-connectors/go/pgx for IAM authentication
- Optimize query plans to avoid table scans on DSQL
- Respect OPENFGA_DATASTORE_USERNAME for DSQL connections
- Add DSQL migration tooling and test fixtures
Pool config fields (MaxConns, MinConns, MaxConnLifetime,
MaxConnIdleTime) were removed from dsql.Config in v0.2.0. Pass them
via a separate pgxpool.Config to dsql.NewPool instead.
@amaksimo amaksimo marked this pull request as ready for review March 16, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants