Re: automatically generating node support functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: automatically generating node support functions
Date
Msg-id 1231810.1657569840@sss.pgh.pa.us
Whole thread Raw
In response to Re: automatically generating node support functions  (Andres Freund <andres@anarazel.de>)
Responses Re: automatically generating node support functions
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> Additionally, I think we've had to add tags to the enum in minor releases
> before and I'm afraid this now would end up looking even more awkward?

Peter and I already had a discussion about that upthread --- we figured
that if there's a way to manually assign a nodetag's number, you could use
that option when you have to add a tag in a stable branch.  We didn't
actually build out that idea, but I can go do that, if we can solve the
more fundamental problem of keeping the autogenerated numbers stable.

One issue with that idea, of course, is that you have to remember to do
it like that when back-patching a node addition.  Ideally there'd be
something that'd carp if the last autogenerated tag moves in a stable
branch, but I'm not very sure where to put that.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: [PATCH] New [relation] option engine
Next
From: Robert Haas
Date:
Subject: Re: making relfilenodes 56 bits