Why do we expand tuples in execMain.c?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Why do we expand tuples in execMain.c?
Дата
Msg-id 20180808042026.lw3bvhpvcktq6qmn@alap3.anarazel.de
обсуждение исходный текст
Ответы Re: Why do we expand tuples in execMain.c?
Список pgsql-hackers
Hi,

I noticed
                if (HeapTupleHeaderGetNatts(tuple.t_data) <
                    RelationGetDescr(erm->relation)->natts)
                {
                    copyTuple = heap_expand_tuple(&tuple,
                                                  RelationGetDescr(erm->relation));
                }
                else
                {
                    /* successful, copy tuple */
                    copyTuple = heap_copytuple(&tuple);
                }

in EvalPlanQualFetchRowMarks, and I'm somewhat confused why it's there?
If it's required here, why isn't it required in dozens of other places?

Greetings,

Andres Freund


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