Y
Hacker News
new
|
ask
|
show
|
jobs
by
efxhoy
1114 days ago
Have your query as a function in the database. BEGIN, do the migration, replace the function, COMMIT. Postgres DDL is transactional so at no point does the function stop working.