Re: automating RangeTblEntry node support

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-01-15T10:37:15Z
Lists: pgsql-hackers

Attachments

On 06.12.23 21:02, Peter Eisentraut wrote:
> I have been looking into what it would take to get rid of the 
> custom_read_write and custom_query_jumble for the RangeTblEntry node 
> type.  This is one of the larger and more complex exceptions left.
> 
> (Similar considerations would also apply to the Constraint node type.)

In this updated patch set, I have also added the treatment of the 
Constraint type.  (I also noted that the manual read/write functions for 
the Constraint type are out-of-sync again, so simplifying this would be 
really helpful.)  I have also added commit messages to each patch.

The way I have re-ordered the patch series now, I think patches 0001 
through 0003 are candidates for inclusion after review, patch 0004 still 
needs a bit more analysis and testing, as described therein.

Commits

  1. Make RangeTblEntry dump order consistent

  2. Remove custom _jumbleRangeTblEntry()

  3. Reformat some node comments

  4. Improve comment

  5. Remove obsolete comment

  6. Remove custom Constraint node read/write implementations