Re: WIP: Rework access method interface

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WIP: Rework access method interface
Дата
Msg-id 956.1442758712@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WIP: Rework access method interface  (Petr Jelinek <petr@2ndquadrant.com>)
Ответы Re: WIP: Rework access method interface  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Список pgsql-hackers
Petr Jelinek <petr@2ndquadrant.com> writes:
> On 2015-09-18 14:58, Alexander Korotkov wrote:
>> After, further personal discussion with Teodor, we decided that
>> amvalidate is out of scope for this patch.
>> It's not evident what should we validate in amvalidate and which way. I
>> think if we need amvalidate it should be subject of separate patch.

> But why is it not evident? We do the validations in regression tests, 
> even if we just copy those then it's enough for a start.

I think the main reason this question is in-scope for this patch is
precisely the problem of what do we do about the regression tests.

I'm not in favor of exposing some SQL-level functions whose sole purpose
is to support those regression test queries, because while those queries
are very useful for detecting errors in handmade opclasses, they're hacks,
and always have been.  They don't work well (or at all, really) for
anything more than btree/hash cases.  It'd be better to expose amvalidate
functions, even if we don't yet have full infrastructure for them.
        regards, tom lane



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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: WIP: Rework access method interface
Следующее
От: Christoph Berg
Дата:
Сообщение: Re: 9.3.9 and pg_multixact corruption