You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: terminate backends before dropping databases and close pg-cache pools in codegen
- safeDropDb now catches 'is being accessed by other users' errors,
terminates backends via pg_terminate_backend, and retries the drop
- PgpmModuleSchemaSource.fetch() now releases pg-cache pool for the
ephemeral database before calling teardown
- generateMulti() shared PGPM source teardown now releases pg-cache
pools before dropping ephemeral databases
These changes fix the systemic issue where dropdb fails because
deployPgpm() and getPgPool() cache connections in pg-cache that
are not closed before the database is dropped.
0 commit comments