Use named captures in Catalog::ParseHeader()
authorMichael Paquier <[email protected]>
Fri, 30 Jun 2023 00:16:27 +0000 (09:16 +0900)
committerMichael Paquier <[email protected]>
Fri, 30 Jun 2023 00:16:27 +0000 (09:16 +0900)
commit23d8624fe52efff0e1c8a6e809d51671f9f549d6
tree77e8ef2d100fe833b8f1b269ff73ef5229e07322
parent5bcc7e6dc8cb6fb6ab16c118a1e710fc85096f76
Use named captures in Catalog::ParseHeader()

Using at least perl 5.14 is required since 4c15327, meaning that it is
possible to use named captures and the %+ hash instead of having to
count parenthesis groups manually.

While on it, CATALOG is made more flexible in its handling of
whitespaces for parameter lists (see the addition of \s* in this
case).  The generated postgres.bki remains exactly the same before and
after this commit.

Author: Dagfinn Ilmari Mannsåker
Reviewed-by: John Naylor
Discussion: https://postgr.es/m/[email protected]
src/backend/catalog/Catalog.pm