Re: Idea about estimating selectivity for single-column expressions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Idea about estimating selectivity for single-column expressions
Дата
Msg-id 26388.1250706159@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Idea about estimating selectivity for single-column expressions  (Greg Stark <gsstark@mit.edu>)
Ответы Re: Idea about estimating selectivity for single-column expressions  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Another thought. In the above case it would actually be fine to catch
> the error with PG_TRY() without a subtransaction. As long as no shared
> database state has been modified when the error is thrown then the
> subtransaction isn't needed to roll them back.

I think catching general errors coming out of possibly user-defined code
without using a subtransaction is just too scary to contemplate.
There's too much stuff that could need to be cleaned up and would not
have been.

It may be that a subtransaction will actually be acceptable overhead,
as long as we don't go overboard and invoke this mechanism for "simple"
WHERE clauses.  Hard to tell without coding it up and testing it though.
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: We should Axe /contrib/start-scripts
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Why ACL_EXECUTE is checked on FindConversion()?