Re: Rewrite, normal execution vs. EXPLAIN ANALYZE

From: David Fetter <david(at)fetter(dot)org>
To: Marko Tiikkaja <marko(dot)tiikkaja(at)cs(dot)helsinki(dot)fi>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Rewrite, normal execution vs. EXPLAIN ANALYZE
Date: 2010-07-23 17:52:39
Message-ID: 20100723175239.GB26130@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jul 22, 2010 at 08:43:35PM +0300, Marko Tiikkaja wrote:
> Hi,
>
> From the code I understood that when executing a query "normally",
> in READ COMMITTED mode, we take a new snapshot for every query that
> comes out of rewrite. But in an EXPLAIN ANALYZE, we only update the
> CID of the snapshot taken when the EXPLAIN started.
>
> Did I misunderstand the code? And if I didn't, why do we do this
> differently?

You mentioned in IRC that this was in aid of getting wCTEs going. How
are these things connected?

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Tiikkaja 2010-07-23 18:13:18 Re: Rewrite, normal execution vs. EXPLAIN ANALYZE
Previous Message Alex Hunsaker 2010-07-23 17:17:05 Re: Functional dependencies and GROUP BY