Pooled connections supported for migrations? #1231
Replies: 1 comment
-
|
Short answer: use a direct (non-pooled) connection string for migrations, even if your application uses PgBouncer/Neon pooled connections. golang-migrate acquires an advisory lock ( The Neon docs are correct: transaction-pooling proxies are incompatible with tools that rely on session-level state (advisory locks, temporary tables, prepared statements, etc.). Correct setup for Neon: Neon provides both a pooled endpoint ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Was reading the neon documentation where it talks about migration tools, and how each tool has to be validated to work on pgbouncer in transaction mode to be compatible.
Anyone had success or able to comment on this?
Beta Was this translation helpful? Give feedback.
All reactions