Re: [HACKERS] Bug in ExecModifyTable function and trigger issues for foreign tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Bug in ExecModifyTable function and trigger issues for foreign tables
Дата
Msg-id 18636.1511797772@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Bug in ExecModifyTable function and trigger issues forforeign tables  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: [HACKERS] Bug in ExecModifyTable function and trigger issues for foreign tables
Список pgsql-hackers
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> I wonder if, years from now, it might look a bit odd that
> rewriteTargetListUD() is doing part of work of preptlist.c, is only
> called from there, and yet is located in the rewriter.

Yeah, I probably wouldn't have done it like this in a green field,
but maintaining traceability to the existing code is valuable IMO.

> A separate point -- it might be marginally more efficient to have the
> work of rewriteTargetListUD() done after expand_targetlist() to avoid
> the possible renumbering of the resjunk entries.

Hm.  It wouldn't save a lot, but yeah, doing it in this order seems
a bit silly when you put it like that.
        regards, tom lane


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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: [HACKERS] Refactoring identifier checks to consistently use strcmp
Следующее
От: Ildus Kurbangaliev
Дата:
Сообщение: Re: [HACKERS] Custom compression methods