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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: dfcc46fe3030b0114b7a5715d5fa40819561c04b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2021-02-02T19:35:12Z
Releases: 14.0
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

Files

PathChange+/−
src/pl/plpgsql/src/pl_gram.y modified +0 −2

Discussion