mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
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@dunslane.net> Discussion: https://www.postgresql.org/message-id/flat/4b27fc50-8cd6-46f5-ab20-88dbaadca645@eisentraut.org
This commit is contained in:
@ -348,7 +348,6 @@ _readRangeTblEntry(void)
|
||||
{
|
||||
READ_LOCALS(RangeTblEntry);
|
||||
|
||||
/* put alias + eref first to make dump more legible */
|
||||
READ_NODE_FIELD(alias);
|
||||
READ_NODE_FIELD(eref);
|
||||
READ_ENUM_FIELD(rtekind, RTEKind);
|
||||
|
Reference in New Issue
Block a user