Re: Rewrite, normal execution vs. EXPLAIN ANALYZE

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема Re: Rewrite, normal execution vs. EXPLAIN ANALYZE
Дата
Msg-id 4C49E821.8060206@cs.helsinki.fi
обсуждение исходный текст
Ответ на Re: Rewrite, normal execution vs. EXPLAIN ANALYZE  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Rewrite, normal execution vs. EXPLAIN ANALYZE  (Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi>)
Список pgsql-hackers
On 7/23/2010 10:00 PM, Robert Haas wrote:
> On Fri, Jul 23, 2010 at 2:13 PM, Marko Tiikkaja
> <marko.tiikkaja@cs.helsinki.fi>  wrote:
>> Currently, I'm trying to make wCTEs behave a bit like RULEs do.  But if
>> every rewrite product takes a new snapshot, wCTEs will behave very
>> unpredictably.
>>
>> But because EXPLAIN ANALYZE does *not* take a new snapshot for every rewrite
>> product, I'm starting to think that maybe this isn't the behaviour we wanted
>> to begin with?
>
> Where should I be looking in the code for this?

ProcessQuery() and ExplainOnePlan().  ProcessQuery calls 
PushActiveSnapshot(GetTransactionSnapshot()) for every statement while 
ExplainOnePlan calls PushUpdatedSnapshot(GetActiveSnapshot()).


Regards,
Marko Tiikkaja


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: permission inconsistency with functions
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: patch: to_string, to_array functions