Re: [PATCH] Tiny optmization.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Tiny optmization.
Дата
Msg-id 16390.1574461053@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: [PATCH] Tiny optmization.  (Ranier Vilela <ranier_gyn@hotmail.com>)
Ответы RE: [PATCH] Tiny optmization.
Список pgsql-hackers
Ranier Vilela <ranier_gyn@hotmail.com> writes:
> Redudant because he it's been dereferenced here:
> line 3410:
>         cstate = BeginCopy(pstate, true, rel, NULL, InvalidOid, attnamelist, options);

Not necessarily ... the rel!=NULL code path there doesn't touch pstate,
and that seems to be what contrib/file_fdw is relying on.

Arguably, the rel==NULL code path in BeginCopy should be prepared to
support pstate being null, too.  But what you proposed here is certainly
not OK.

            regards, tom lane



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

Предыдущее
От: Tels
Дата:
Сообщение: Re: backup manifests
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: [PATCH] Tiny optmization.