Update some more ObjectType switch statements to not have default
Peter Eisentraut <peter@eisentraut.org>
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: https://www.postgresql.org/message-id/flat/fce5c98a-45da-19e7-dad0-21096bccd66e%40enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/objectaddress.c | modified | +16 −10 |
| src/backend/commands/dropcmds.c | modified | +37 −2 |
Discussion
- Update some more ObjectType switch statements to not have default 1 message · 2022-11-09