Re: dropping datumSort field

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: dropping datumSort field
Дата
Msg-id CA+Tgmoa8LfaoXG8+A1G_nE+xC-FO3Lzm=es0S8bWS5RiPjwj=A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: dropping datumSort field  (Zhihong Yu <zyu@yugabyte.com>)
Ответы Re: dropping datumSort field  (Zhihong Yu <zyu@yugabyte.com>)
Список pgsql-hackers
On Tue, Aug 9, 2022 at 11:16 AM Zhihong Yu <zyu@yugabyte.com> wrote:
> tupDesc is declared inside `if (!node->sort_Done)` block whereas the last reference to tupDesc is outside the if
block.

Yep.

> I take your review comment and will go back to do more homework.

The real point for me here is you haven't offered any reason to make
this change. The structure member in question is basically free.
Because of alignment padding it uses no more memory, and it makes the
intent of the code clearer.

Let's not change things just because we could.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Zhihong Yu
Дата:
Сообщение: Re: dropping datumSort field
Следующее
От: Junwang Zhao
Дата:
Сообщение: remove useless comments