Re: Review: B-Tree emulation for GIN

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Review: B-Tree emulation for GIN
Дата
Msg-id 3638.1238000110@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Review: B-Tree emulation for GIN  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
BTW ... while I'm thinking about it: it seems to me to be a serious
error that the consistent() function isn't given nkeys so that it can
know the length of the arrays it's being handed.  I suppose it's
possible for it to re-deduce nkeys by examining the query datum, but
that could be quite expensive; and it's certainly error-prone to have
to keep extractQuery() and consistent() in sync on this.  Since we are
adding arguments to consistent() anyway for 8.4, I propose that its
signature ought to be

bool consistent(bool check[], StrategyNumber n, Datum query,               int32 nkeys, bool *recheck, Pointer
extra_data[])

where the first three arguments are what existed in 8.3.
        regards, tom lane


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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: display previous query string of idle-in-transaction
Следующее
От: Tom Lane
Дата:
Сообщение: Re: cached plan issue in trigger func