Re: Problemas with gram.y - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Problemas with gram.y
Date
Msg-id 20060303213259.GE17615@svana.org
Whole thread Raw
In response to Problemas with gram.y  (tmorelli@tmorelli.com.br)
List pgsql-hackers
On Fri, Mar 03, 2006 at 07:14:45PM -0200, tmorelli@tmorelli.com.br wrote:
> Hi,
>
> I'm trying to extend the CREATE INDEX statement with a fillfactor clause. In
> Gram.y, I did this:

<snip>

> I had to add a new field into IndexStmt (unsigned int fillfactor). Everything
> is fine after parsing except that I can't see the integer value. For example,
> in transformIndexStmt (analyze.c), I've inspected stmt->fillfactor and I've got
>  a strange, obviously wrong, value (137616352) after issuing this statement:

Did you update infunc/outfuncs/copyfuns in the nodes directory? They're
used to copy the nodes and if you forget to update them you get strange
numbers instead.

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Problemas with gram.y
Next
From: Bruce Momjian
Date:
Subject: Re: Building Windows Server Extensions Using VC++ 2005