Обсуждение: C: extending text search: from where to start

Поиск
Список
Период
Сортировка

C: extending text search: from where to start

От
Ivan Sergio Borgonovo
Дата:
I'd like to extend full text search so that I can transform tvectors
in tquery and have direct access to a tvector as a record/array.

I'm on Debian.

This is my first experience with pg source code.
I'd appreciate any pointer that will quickly put me on the right
track.

thanks

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


Re: C: extending text search: from where to start

От
Dimitri Fontaine
Дата:
Ivan Sergio Borgonovo <mail@webthatworks.it> writes:
> I'd appreciate any pointer that will quickly put me on the right
> track.

I'd guess you begin here:
  http://wiki.postgresql.org/wiki/Developer_FAQ

--
dim

Re: C: extending text search: from where to start

От
Ivan Sergio Borgonovo
Дата:
On Tue, 19 Jan 2010 10:12:21 +0100
Dimitri Fontaine <dfontaine@hi-media.com> wrote:

> Ivan Sergio Borgonovo <mail@webthatworks.it> writes:
> > I'd appreciate any pointer that will quickly put me on the right
> > track.
>
> I'd guess you begin here:
>   http://wiki.postgresql.org/wiki/Developer_FAQ

With the exception of formatting style info I didn't find anything
useful there.

Right now I'm reading:
http://www.postgresql.org/docs/8.3/static/xfunc-c.html
There is just an example on how to build up the data returned but it
uses C string. I couldn't find an example that uses TupleDesc
BlessTupleDesc.

I'm installing deb contrib source package.

Any other resource that will help me to write my own contrib?


thanks

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


Re: C: extending text search: from where to start

От
Dimitri Fontaine
Дата:
Ivan Sergio Borgonovo <mail@webthatworks.it> writes:
> Any other resource that will help me to write my own contrib?

You could try out the following, but it deals a lot with GiST specifics…

  http://wiki.postgresql.org/wiki/Image:Prato_2008_prefix.pdf

Regards,
--
dim