Re: passing parameters to CREATE INDEX

Поиск
Список
Период
Сортировка
Искать
От
ITAGAKI Takahiro
Тема
Re: passing parameters to CREATE INDEX
Дата
Msg-id
20060712125231.E855.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Ответ на
Список
Дерево обсуждения
passing parameters to CREATE INDEX Simon Riggs <simon@2ndquadrant.com>
Re: passing parameters to CREATE INDEX Tom Lane <tgl@sss.pgh.pa.us>
Re: passing parameters to CREATE INDEX Teodor Sigaev <teodor@sigaev.ru>
Re: passing parameters to CREATE INDEX ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Re: passing parameters to CREATE INDEX Tom Lane <tgl@sss.pgh.pa.us>
Teodor Sigaev  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 по дате отправления
От: Greg Stark
Дата:
От: Neil Conway
Дата:
FAQ