Re: Allow to specify #columns in heap/index_form_tuple

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Allow to specify #columns in heap/index_form_tuple
Дата
Msg-id 13672.1490986480@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Allow to specify #columns in heap/index_form_tuple  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> Andres Freund <andres@anarazel.de> writes:
>> It'd be useful for FieldStore - we'd not have to error out anymore if
>> the number of columns changes (which I previously had "solved" by using
>> MaxHeapAttributeNumber sized values/nulls array).

> Ah, I see.  But in that case you're not really truncating the tuple
> --- what you want is to be allowed to pass undersized datum/nulls
> arrays and have the missing columns be taken as nulls.

No, scratch that: you can't use an "extended" heap_form_tuple to solve
that problem, because it's not only the form-tuple end but the
deform-tuple end that needs fullsize arrays.  Otherwise, we'd be losing
trailing-column values in the deform-and-reform cycle.  So I still
don't see that there's a valid application for this feature.
        regards, tom lane



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: brin autosummarization -- autovacuum "work items"
Следующее
От: Andres Freund
Дата:
Сообщение: parallel explain analyze support not exercised