Re: [HACKERS] Garbled comment in postgresGetForeignJoinPaths

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] Garbled comment in postgresGetForeignJoinPaths
Дата
Msg-id CA+TgmoY377WU7N-Z6D5iCRWVJWY9G+RzaomD+eOX28dOLEnyeQ@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] Garbled comment in postgresGetForeignJoinPaths  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Garbled comment in postgresGetForeignJoinPaths  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Aug 16, 2017 at 12:31 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> postgres_fdw.c around line 4500:
>
>     /*
>      * If there is a possibility that EvalPlanQual will be executed, we need
>      * to be able to reconstruct the row using scans of the base relations.
>      * GetExistingLocalJoinPath will find a suitable path for this purpose in
>      * the path list of the joinrel, if one exists.  We must be careful to
>      * call it before adding any ForeignPath, since the ForeignPath might
>      * dominate the only suitable local path available.  We also do it before
> -->  * reconstruct the row for EvalPlanQual(). Find an alternative local path
>      * calling foreign_join_ok(), since that function updates fpinfo and marks
>      * it as pushable if the join is found to be pushable.
>      */
>
> Should the marked line simply be deleted?  If not, what correction is
> appropriate?

Hmm, wow.  My first thought was that it should just say
"reconstructing" rather than "reconstruct", but on further reading I
think you might have the right idea.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: [HACKERS] Atomics for heap_parallelscan_nextpage()
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Atomics for heap_parallelscan_nextpage()