Turn AT_PASS_* macros into an enum

Peter Eisentraut <peter@eisentraut.org>

Commit: cea89c93a10216e54974764b40799ba7ceb6b920
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-01-01T18:17:18Z
Releases: 17.0
Turn AT_PASS_* macros into an enum

This make this code simpler and easier to follow.  Also, patches that
want to change the passes won't have to renumber the whole list.

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b94yyJeGA-5M951_Lr+KfZokOp-2kXicpmEhi5FXhBeTog@mail.gmail.com

Files

PathChange+/−
src/backend/commands/tablecmds.c modified +29 −26
src/tools/pgindent/typedefs.list modified +1 −0

Discussion