From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Update some more ObjectType switch statements to not have defaul
Date: Thu, 17 Nov 2022 06:22:19 +0000
Message-ID: <E1ovYHy-000Yn1-AS@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Update some more ObjectType switch statements to not have defaul
In-Reply-To: <E1ovYHy-000Yn1-AS@gemulon.postgresql.org>
References: <E1ovYHy-000Yn1-AS@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox