Databases · Senior · Question 68 of 75

What is a safe sequence for dropping a column in a system with rolling deploys?

Explanation

Old instances still running during deploy would fail on a missing column. DROP COLUMN itself is fast in PostgreSQL: it only marks the column as dropped.

Further reading

Problem with a question

Databases · Senior · question 68

Test yourself

Take the Databases · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz