From: | Dimitri Fontaine <dfontaine(at)hi-media(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Varlena Type Creation |
Date: | 2008-02-26 17:19:48 |
Message-ID: | 200802261819.51401.dfontaine@hi-media.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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 received the advice to
implement a prefix range datatype then base the picksplit() and union()
implementation on top of it.
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
{
int32 vl_len_;
char start;
char end;
text prefix;
} prefix_range;
In particular, I've been taught a varlena definition can not contain pointers,
and I've no idea how to embed a text into another varlena...
Regards,
--
dim
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2008-02-26 17:20:51 | Re: Including PL/PgSQL by default |
Previous Message | Simon Riggs | 2008-02-26 17:16:51 | Re: pg_dump additional options for performance |