Skip to content

fix(migrate): drop session advisory lock (0.1.6) - #7

Merged
ralyodio merged 1 commit into
mainfrom
fix/migrate-no-session-lock
Oct 26, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/migrate-no-session-lock

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Found adopting moshcoding.com: through a pool, pg_advisory_lock/unlock can hit different connections and leave the lock held. migrate() now relies on idempotent DDL and retries the concurrent-create race. 86 tests incl. concurrent migrate on Postgres and libsql-pg.

🤖 Generated with Claude Code

Found adopting moshcoding.com: through a pool (libsql-pg, postgres.js
max>1) pg_advisory_lock and unlock can run on different connections and
leave the lock held, hanging the next migrate. Statements are idempotent
and the concurrent-create race retries on 'already exists'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit a32c7b4 into main Oct 26, 2026
3 checks passed
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