pgsql: Turn AT_PASS_* macros into an enum

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Turn AT_PASS_* macros into an enum
Date: 2024-01-01 20:09:24
Message-ID: E1rKObD-00D0qe-Q7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b94yyJeGA-5M951_Lr+KfZokOp-2kXicpmEhi5FXhBeTog(at)mail(dot)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2024-01-02 03:07:34 pgsql: Allow upgrades to preserve the full subscription's state.
Previous Message Peter Eisentraut 2023-12-31 14:53:55 pgsql: Revert "pg_stat_statements: Add coverage for entry_dealloc()"