Update some more ObjectType switch statements to not have default

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-11-09T14:26:15Z
Lists: pgsql-hackers

Attachments

This arose during the review of another patch.

We often omit the default case of a switch statement to allow the 
compiler to complain if an enum case has been missed.  I found a few 
where that wasn't done yet, but it would make sense and would have found 
an omission in another patch.

Commits

  1. Update some more ObjectType switch statements to not have default