Re: passing parameters to CREATE INDEX - Mailing list pgsql-hackers

From ITAGAKI Takahiro
Subject Re: passing parameters to CREATE INDEX
Date
Msg-id 20060712125231.E855.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Whole thread Raw
In response to Re: passing parameters to CREATE INDEX  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
Teodor Sigaev <teodor@sigaev.ru> wrote:

> pluggable parameters for index.
> I think, we may 
> can add to pg_opclass's definition method/parameter name and create some API 
> (may be, index specific) to propagate parameter's to module's interface 
> functions to index.

How abount adding a new option hander to GiST/GIN support functions?

Presently, amoptions() are defined as  bytea *amoptions (ArrayType *reloptions, bool validate).
If there is a support function like this form in operator classes,
we can propagate options. Eventually, calling sequence will be DefineIndex() -> amoptions() -> tsvectoroptions().

We also need to change gist/ginoptions() in order to determine what operator
class is used. This is a bit messy problem. Options are parsed before support
functions are initialized, so that I don't know in what form we should pass the
operator class to amoptions().


Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center




pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: [PATCHES] putting CHECK_FOR_INTERRUPTS in qsort_comparetup()
Next
From: Neil Conway
Date:
Subject: Re: newbie patch-attempt: selecting large result sets in