News for hackers. Stuff that matters.
Re:Show HN: I built this Postgres logger for you guys to che... by lazyant on Thursday August 24, 2023 @11:35AM (#37250074)
Like others have said, this is a control problem in prod (not using migrations in code and renaming instead of dropping). Anyways, as an fun exercise to get exactly what's asked, I wonder if this could be used https://tembo.io/blog/introducing-pg-later/ together with a trigger to trap the DROP, alert on Slack and run later if not aborted.
Re:Show HN: I built this Postgres logger for you guys to che... by jrockway on Thursday August 24, 2023 @12:34PM (#37250965)
Migrations are not your safety net, backups are. Migrations, like all code, are full of bugs.