Re: building pg_dump doesn't work - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: building pg_dump doesn't work
Date
Msg-id 20090304160319.GI12851@alvh.no-ip.org
Whole thread Raw
In response to Re: building pg_dump doesn't work  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas wrote:
> Alvaro Herrera wrote:

>>   /*
>> +  * We don't want to include the gram.h file on frontend builds, except ECPG, so
>> +  * leave out the second struct member in that case.
>> +  */
>> + #if !defined FRONTEND || defined ECPG_COMPILE
>> + #define PG_KEYWORD(a,b,c) {a,b,c}
>> + #else
>> + #define PG_KEYWORD(a,b,c) {a,c}
>> + #endif
>
> Doesn't that put 'c' into the wrong field in ScanKeyword struct? It only  
> compiles because both 'value' and 'category' are int16.

No, because I had the header with the second field omitted too.

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


pgsql-hackers by date:

Previous
From: Hans-Jürgen Schönig
Date:
Subject: Re: SYNONYMs revisited
Next
From: Alvaro Herrera
Date:
Subject: Re: building pg_dump doesn't work