pgsql: Remove extra increment of plpgsql's statement counter for FOR lo

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove extra increment of plpgsql's statement counter for FOR lo
Date: 2021-02-02 19:35:51
Message-ID: E1l71Sp-0001IL-4x@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove extra increment of plpgsql's statement counter for FOR loops.

This left gaps in the internal statement numbering, which is not
terribly harmful (else we'd have noticed sooner), but it's not
great either.

Oversight in bbd5c207b; backpatch to v12 where that came in.

Pavel Stehule

Discussion: https://postgr.es/m/CAFj8pRDXyQaJmpotNTQVc-t-WxdWZC35V2PnmwOaV1-taidFWA@mail.gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0fe8b1f7d48ed2d5f50d6583481f70d2ebf2a073

Modified Files
--------------
src/pl/plpgsql/src/pl_gram.y | 2 --
1 file changed, 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-02-02 21:15:34 pgsql: Doc: consistently identify OID catalog columns that can be zero.
Previous Message Tom Lane 2021-02-02 18:49:28 pgsql: Fix ancient memory leak in contrib/auto_explain.