Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions.
Дата
Msg-id 26924.1395439097@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions.  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-committers
I wrote:
> I think the whole thing is too cute by half.  Why isn't it just

> typedef enum GinLogicValue
> {
>     GIN_FALSE = 0,           /* item is present / matches */
>     GIN_TRUE = 1,            /* item is not present / does not match */
>     GIN_MAYBE = 2            /* don't know if item is present / don't know if
>                               * matches */
> } GinLogicValue;

... and now that I look at it a second time: *please* tell me the comments
on the first two values should be swapped.  The API isn't really "false
means a match", is it?

            regards, tom lane


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: pgsql: Allow opclasses to provide tri-valued GIN consistent functions.