Re: Fix out-of-bounds in the function GetCommandTagName - Mailing list pgsql-hackers

From David Rowley
Subject Re: Fix out-of-bounds in the function GetCommandTagName
Date
Msg-id CAApHDvqVRGurCQk-9EToqrFJOB1vyRfObFaqnZXoa99OX_KK8Q@mail.gmail.com
Whole thread Raw
In response to Re: Fix out-of-bounds in the function GetCommandTagName  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fix out-of-bounds in the function GetCommandTagName
List pgsql-hackers
On Mon, 15 Apr 2024 at 11:54, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> would this also allow us to get rid of any default:
> cases in switches on command tags?

git grep "case CMDTAG_" does not yield any results.

As far as I understand, we'd only be able to get rid of a default case
if we had a switch that included all CMDTAG* values apart from
COMMAND_TAG_NEXTTAG.  If we don't ever switch on CMDTAG values then I
think the answer to your question is "no".

David



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Stability of queryid in minor versions
Next
From: Peter Geoghegan
Date:
Subject: Re: Stability of queryid in minor versions