Re: GiST opclass and varlena - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: GiST opclass and varlena
Date
Msg-id 87iqypu40l.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: GiST opclass and varlena  (Dimitri Fontaine <dfontaine@hi-media.com>)
Responses Re: GiST opclass and varlena
List pgsql-hackers
"Dimitri Fontaine" <dfontaine@hi-media.com> writes:

> It turned around the error was related to the definition of my gpr_penalty() 
> function, which I wanted to expose as the GiST "internal" and a SQL callable 
> one too (for debugging and tests purpose). I forgot to define the internal 
> one in the prefix.c side of things, got no complaint whatsover (nor at 
> compile time neither at prefix.sql installation time) but garbage as data in 
> __pr_penalty() function (not respecting GiST calling conventions).

I'm getting interested now. How was __pr_penalty defined? What was the
declaration you were missing in prefix.c?

Was it specifically related to a varlena or was it a char or something like
that?

And was it something gcc -Wall was warning about or somehow was it slipping
by?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's PostGIS support!


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [DOCS] [SQL] pl/PgSQL, variable names in NEW
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Commit fest queue