Re: [HACKERS] Varlena Type Creation

2008-02-28 Thread Dimitri Fontaine
Le mercredi 27 février 2008, Martijn van Oosterhout a écrit : > I see no-one responded to this: a varlena has no fixed header size, so > you can't fit it in a structure anyway. Once you're passed a pointer > you use the LEN/PTR macros to extract what you want. Once the type exists and the code get

Re: [HACKERS] Varlena Type Creation

2008-02-27 Thread Martijn van Oosterhout
On Tue, Feb 26, 2008 at 06:19:48PM +0100, Dimitri Fontaine wrote: > So... where do I start to create a varlena datatype which has to store the 3 > following values: text prefix, char start, char end. > > It's not clear for me whether this is what I need to provide: > > typedef struct I see no-o

[HACKERS] Varlena Type Creation

2008-02-26 Thread Dimitri Fontaine
Hi, I'm working on a GiST opclass to support prefix searching as presented here: http://pgsql.tapoueh.org/site/html/prefix/index.html http://prefix.projects.postgresql.org/README.html http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/prefix/prefix/ In order to have a much more efficient index, I