pgsql: Remove COMMAND_TAG_NEXTTAG from enum CommandTag.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove COMMAND_TAG_NEXTTAG from enum CommandTag.
Date: 2024-05-13 17:52:33
Message-ID: E1s6Zqk-0002Td-1g@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove COMMAND_TAG_NEXTTAG from enum CommandTag.

COMMAND_TAG_NEXTTAG isn't really a valid command tag. Declaring it
as if it were one prompts complaints from Coverity and perhaps other
static analyzers. Our only use of it is in an entirely-unnecessary
array sizing declaration, so let's just drop it.

Ranier Vilela

Discussion: https://postgr.es/m/CAEudQAoY0xrKuTAX7W10zsjjUpKBPFRtdCyScb3Z0FB2v6HNmQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1f7452fa598ee5f1ed32f1fcce101c63c6f1933f

Modified Files
--------------
src/backend/tcop/cmdtag.c | 2 +-
src/include/tcop/cmdtag.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2024-05-13 20:57:16 pgsql: Fix pg_sequence_last_value() for unlogged sequences on standbys.
Previous Message Alvaro Herrera 2024-05-13 11:13:55 pgsql: Fix typo