Re: New Index

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: algatt <alangatt(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: New Index
Date: 2007-07-28 08:42:53
Message-ID: 46AB018D.7000709@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

algatt wrote:
> I am trying to create a new index for high multi-dimensional indexing.
> The index I'm trying to use in PR-Tree ( www.cs.duke.edu/~yike/prtree/
> ).
>
> I have created a new source file in "src/backend/access/" and for now
> I have created the empty functions: build, insert, vacuum, etc... I
> believe that this has to be done in C. Then I ran "/src/include/
> catalog/unused_oids" to find the unused oids, and then i added the
> oids to the functions in the source "file /src/include/catalog/
> pg_proc.h". I re-ran initdb and inserted the functions in pg_am table.

You seem to be on the right track.

> Now obviously I have to add the proper code to the functions, but the
> version of the code I have for the PR-Tree is in C++. Is there a way
> to implement the functions using the existing PR-Tree code in C++?

No, we don't support C++ in the backend. It's almost certainly easier to
just start from scratch anyway, because integrating it with all the
PostgreSQL infrastructure like the buffer manager, vacuum, WAL-logging,
data type and operator system.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

  • New Index at 2007-07-28 07:13:39 from algatt

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2007-07-28 09:29:47 Re: default_text_search_config and expression indexes
Previous Message Magnus Hagander 2007-07-28 07:26:47 Re: default_text_search_config and expression indexes