pgsql: Update some more ObjectType switch statements to not have defaul

Started by Peter Eisentrautover 3 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Update some more ObjectType switch statements to not have default

This allows the compiler to complain if a case has been missed. In
these instances, the tradeoff of having to list a few unneeded cases
to silence the compiler seems better than the risk of actually missing
one.

Discussion: /messages/by-id/fce5c98a-45da-19e7-dad0-21096bccd66e@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aca992040951c7665f1701cd25d48808eda7a809

Modified Files
--------------
src/backend/catalog/objectaddress.c | 26 +++++++++++++++----------
src/backend/commands/dropcmds.c | 39 +++++++++++++++++++++++++++++++++++--
2 files changed, 53 insertions(+), 12 deletions(-)