pgsql: Make RangeTblEntry dump order consistent

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make RangeTblEntry dump order consistent
Date: 2024-03-22 06:41:34
Message-ID: E1rnYar-0053Sk-VY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make RangeTblEntry dump order consistent

Put the fields alias and eref earlier in the struct, so that it
matches the order in _outRangeTblEntry()/_readRangeTblEntry(). This
helps if we ever want to fully automate out/read of RangeTblEntry.
Also, it makes dumps in the debugger easier to read in the same way.
Internally, this makes no difference.

Reviewed-by: Andrew Dunstan <andrew(at)dunslane(dot)net>
Discussion: https://www.postgresql.org/message-id/flat/4b27fc50-8cd6-46f5-ab20-88dbaadca645(at)eisentraut(dot)org

Branch
------
master

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

Modified Files
--------------
src/backend/nodes/outfuncs.c | 1 -
src/backend/nodes/readfuncs.c | 1 -
src/include/catalog/catversion.h | 2 +-
src/include/nodes/parsenodes.h | 14 ++++++++++----
4 files changed, 11 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2024-03-22 08:38:03 pgsql: Track invalidation_reason in pg_replication_slots.
Previous Message Peter Eisentraut 2024-03-22 06:27:56 pgsql: Remove custom _jumbleRangeTblEntry()