Re: WIP: Rework access method interface
| От | Teodor Sigaev |
|---|---|
| Тема | Re: WIP: Rework access method interface |
| Дата | |
| Msg-id | 55F9AA82.8080804@sigaev.ru обсуждение исходный текст |
| Ответ на | Re: WIP: Rework access method interface (Alexander Korotkov <a.korotkov@postgrespro.ru>) |
| Ответы |
Re: WIP: Rework access method interface
|
| Список | pgsql-hackers |
> validate_opclass was renamed to amvalidate.
It seems to me, that amvalidate method of AM should get as argument only Oid of
operator family. Layout and meaning of amproc/amop fields are differ for
different AM and there isn't an AM which implements all possible features.
Actually, I'm a bit confused with follow piece of code (ginvalidate, for instance):
foreach(l, opclass->procedures)
{ ... if (proc->lefttype != opclass->intype || proc->righttype != opclass->intype)
continue; ...
That is amproc could contain a row, which connected to some operator class but
this fact will be missed this check and may be, never used or used wrongly.
Despite these observations, I think that this work is needed.
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
В списке pgsql-hackers по дате отправления: