Re: passing parameters to CREATE INDEX

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: passing parameters to CREATE INDEX
Дата
Msg-id 20050920201019.GE8586@svana.org
обсуждение исходный текст
Ответ на passing parameters to CREATE INDEX  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: passing parameters to CREATE INDEX  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: passing parameters to CREATE INDEX  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
On Tue, Sep 20, 2005 at 11:26:26PM +0400, Oleg Bartunov wrote:
> it's desirable to be able to pass parameters to CREATE INDEX for
> GiST indices. Does SQL standard has something about that so we could
> implement it for 8.2 ?

As has been pointed out, INDEXes arn't in the SQL spec at all, so you
can do just about anything.

> Example from real life project - performance of tsearch2 could be
> greatly improved if decrease signature size in gistidx.h, which is
> currently hardcoded and one should compile and install tsearch2 into
> differnet location and use it for specific database. It's impossible
> to have different signature length for different fts indices because
> we have no possibility to pass parameters to CREATE INDEX command.

What syntax were you envisioning? Does this value just need to be
passed to GiST at the creation of the the index, or does it actually
need to remembered by the backend and passed each call? At the moment
there is some discussion on changes to the index interface so now is
the time to ask for what you want...

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: passing parameters to CREATE INDEX
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: SHM_LOCK under Linux ... do we use this?