Skip to content

Conversation

mfridman
Copy link
Collaborator

@mfridman mfridman commented Aug 4, 2025

This PR adds Aurora DSQL as a new database dialect. We can't use the existing Postgres schema because DSQL doesn't support auto-incrementing IDs.

Also, the updated InsertVersion SQL is prone to race conditions. Callers will need to guard this, or ensure migrations are applied as a singleton prior to application startup. The postgres lock will not work because DSQL doesn't support advisory locks. Long term, goose needs to support another form of locking via a dedicated lock table.

ERROR: function pg_try_advisory_lock not supported (SQLSTATE 0A000)

Related to #962

@mfridman mfridman merged commit bdac41f into main Aug 4, 2025
4 checks passed
@mfridman mfridman deleted the mf/dsql-support-2 branch August 4, 2025 14:37
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.

1 participant