cleanup execTuples.c

Поиск
Список
Период
Сортировка
От Neil Conway
Тема cleanup execTuples.c
Дата
Msg-id 874qwz4uom.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответы Re: cleanup execTuples.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
This patch refactors execTuples.c in two ways:

     (1) ExecInitXXXResultTupleSlot() used a macro to avoid some
         duplicated code, whereas calling ExecInitExtraTupleSlot() would
         make the code more clear.

     (2) ExecTypeFromTL() and ExecCleanTypeFromTL() duplicated a bunch
         of code; I added a new function ExecTypeFromTLInternal() and
         re-implemented these functions in terms of calls to it.

As a result, ExecInitScanTupleSlot(), ExecInitResultTupleSlot(),
ExecTypeFromTL(), and ExecCleanTypeFromTL() are now all trivial
(1 line) functions. I could have replaced these with macros, but I
didn't: does anyone thinks that would be worth doing?

-Neil

Вложения

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: internationalization of initdb
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Add GUC setting to make created tables default to