pgsql: Turn AT_PASS_* macros into an enum - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Turn AT_PASS_* macros into an enum
Date
Msg-id E1rKObD-00D0qe-Q7@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cea89c93a10216e54974764b40799ba7ceb6b920

Modified Files
--------------
src/backend/commands/tablecmds.c | 55 +++++++++++++++++++++-------------------
src/tools/pgindent/typedefs.list |  1 +
2 files changed, 30 insertions(+), 26 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Revert "pg_stat_statements: Add coverage for entry_dealloc()"
Next
From: Amit Kapila
Date:
Subject: pgsql: Allow upgrades to preserve the full subscription's state.