by SystemOut · 14y ago · 0 comments
PostgreSQL supports transactional schema modifications. fast adding and removing of columns, and lockless index creation. So in simple cases upgrading the schema is trivial. For complicated cases it can be a mess, but my guess is that that applies to any database.
Also don't forget that MongoDB can have arrays and sets as a "column" type. Which if you tried to replicate in RDBMS would mean a multi-table migration.
Which is not by itself an advantage. You still need to write the code which does the schema change if you for example rename a field.
> Also don't forget that MongoDB can have arrays and sets as a "column" type. Which if you tried to replicate in RDBMS would mean a multi-table migration.
So can PostgreSQL. The sets are not as general as in MongoDB though since they can only store strings.