Make RangeTblEntry dump order consistent
authorPeter Eisentraut
Fri, 22 Mar 2024 06:12:28 +0000 (07:12 +0100)
committerPeter Eisentraut
Fri, 22 Mar 2024 06:28:33 +0000 (07:28 +0100)
commitb4080fa3dcf6c6359e542169e0e81a0662c53ba8
treec6914dc70d21e6bf0ca595ff6c9d1d4305f0ea99
parent367c989cd8405663bb9a35ec1aa4f79b673a55ff
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
Discussion: https://www.postgresql.org/message-id/flat/4b27fc50-8cd6-46f5-ab20-88dbaadca645@eisentraut.org
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/include/catalog/catversion.h
src/include/nodes/parsenodes.h