Re: portability of "designated initializers" - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: portability of "designated initializers"
Date
Msg-id 20081123000759.GG3813@alvh.no-ip.org
Whole thread Raw
In response to Re: portability of "designated initializers"  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: portability of "designated initializers"
Re: portability of "designated initializers"
List pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:

> > I mean something like this:
> 
> Where/why do you need to do that?

The reloptions patch uses three arrays, one for each type of option
(bool, int, float).  I'm wondering if we could use a single array with
all options, and a union containing the values.  The only problem with
that (AFAICS) is the initialization.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: portability of "designated initializers"
Next
From: Tom Lane
Date:
Subject: Re: portability of "designated initializers"