Refactor grammar to create opt_utility_option_list

Álvaro Herrera <alvherre@kurilemu.de>

Commit: 1dfe3ef3f960d6924eb1f18facf4fbdae6e1cc1d
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: 2025-07-25T10:03:19Z
Refactor grammar to create opt_utility_option_list

This changes the grammar for REINDEX, CHECKPOINT, CLUSTER, ANALYZE/ANALYSE;
they still accept the same options as before, but the grammar is written
differently for convenience of future development.

Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://postgr.es/m/202507231538.ir7pjzoow6oe@alvherre.pgsql

Files

PathChange+/−
src/backend/parser/gram.y modified +56 −68

Discussion