Re: Why does contain_leaked_vars believe MinMaxExpr is safe?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Why does contain_leaked_vars believe MinMaxExpr is safe?
Дата
Msg-id CA+TgmoZn74=oGfxL-0aCH35hnFxv1N6vVn15kH5Evy2XNDguGQ@mail.gmail.com
обсуждение исходный текст
Ответ на Why does contain_leaked_vars believe MinMaxExpr is safe?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Why does contain_leaked_vars believe MinMaxExpr is safe?  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On Tue, May 12, 2015 at 7:22 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> MinMaxExpr is an implicit invocation of a btree comparison function.
> Are we supposing that all of those are necessarily leakproof?

I suspect it's an oversight, because the comment gives no hint that
any such intention was present.  It's been more than three years since
I committed that code (under a different function name) so my memory
is a little fuzzy, but I believe it just didn't occur to me that
MinMaxExpr could include a function call.

I suspect it's safe in practice, but in theory it's probably a bug.

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



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Streaming replication and WAL archive interactions
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: Sequence Access Method WIP