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

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Update some more ObjectType switch statements to not have defaul
Date: 2022-11-17 06:22:19
Message-ID: E1ovYHy-000Yn1-AS@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-11-17 06:44:37 pgsql: Export with_icu when running src/bin/scripts tests with meson
Previous Message Justin Pryzby 2022-11-17 03:15:43 Re: pg_upgrade test failure