Re: Union-ifying RangeTblEntry

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Union-ifying RangeTblEntry
Date: 2014-01-28 15:17:11
Message-ID: CA+TgmoYwjypLGYnCoa2PPad+QVEhJh-UdGen2xYpMsCBQCSPZg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 28, 2014 at 1:18 AM, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
> I'm about to have to add _another_ flag to RangeTblEntry, to track
> row-security expansion.
>
> In the process I noticed the comment:
>
> /*
> * XXX the fields applicable to only some rte kinds should be
> * merged into a union. I didn't do this yet because the diffs
> * would impact a lot of code that is being actively worked on.
> * FIXME someday.
> */
>
> and it struck me that the end of the 9.4 commitfest might be a
> reasonable time to do this now that PstgreSQL is subject to "pulsed"
> development with commitfests.
>
> As part of that, a number of the flag fields on RangeTblEntry into a
> bitfield.
>
> Comments?

I'd be more inclined to just remove the comment. Does a RangeTblEntry
really use enough memory that we need to conserve bytes there?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2014-01-28 15:27:52 Re: proposal: hide application_name from other users
Previous Message Andrew Dunstan 2014-01-28 15:16:24 Re: [PATCH] Implement json_array_elements_text