Re: Fix out-of-bounds in the function GetCommandTagName

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Fix out-of-bounds in the function GetCommandTagName
Дата
Msg-id CAApHDvqVRGurCQk-9EToqrFJOB1vyRfObFaqnZXoa99OX_KK8Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Fix out-of-bounds in the function GetCommandTagName  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Fix out-of-bounds in the function GetCommandTagName  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Stability of queryid in minor versions
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Stability of queryid in minor versions