Remove extra increment of plpgsql's statement counter for FOR loops.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Feb 2021 19:35:12 +0000 (14:35 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Feb 2021 19:35:20 +0000 (14:35 -0500)
commit0fe8b1f7d48ed2d5f50d6583481f70d2ebf2a073
tree953202811a09b944154962b131ab1082bb9e4fff
parent5868913943441f9d0a5776f1367f3f98268b10a8
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
src/pl/plpgsql/src/pl_gram.y