Re: Parallell Optimizer

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Ants Aasma <ants(dot)aasma(at)eesti(dot)ee>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tatsuo Ishii <ishii(at)postgresql(dot)org>, michael(dot)paquier(at)gmail(dot)com, pgsql-hackers(at)postgresql(dot)org, hannu(at)2ndquadrant(dot)com, simon(at)2ndquadrant(dot)com, fred(at)nti(dot)ufop(dot)br, tgl(at)sss(dot)pgh(dot)pa(dot)us
Subject: Re: Parallell Optimizer
Date: 2013-06-13 01:53:07
Message-ID: 20130613015306.GH7200@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ants,

* Ants Aasma (ants(dot)aasma(at)eesti(dot)ee) wrote:
> On Jun 13, 2013 4:18 AM, "Stephen Frost" <sfrost(at)snowman(dot)net> wrote:
> > * Ants Aasma (ants(at)cybertec(dot)at) wrote:
> > > In a cluster setting you take the CSN value on the master, then before
> > > starting execution on a standby you wait until that the standby has
> > > replayed enough WAL to reach the CSN point read from the master and
> > > you know that after that everything that the snapshot can see is also
> > > replayed on the standby.
> >
> > This does make a lot of sense- but to clarify, this would only be for
> > certain isolation levels, right? Or would we implement this for every
> > snapshot taken in a read-committed transaction?
>
> I don't see a way how snapshots representing different points in time could
> provide sensible results for parallel queries, so this needs to be used for
> all snapshots.

To be honest, I had really looked at this out of context and was
thinking of it being used with replication and hot-standbys. I agree
that you'd have to use this for all snapshots if you're using it for
parallel query execution.

> This is why having the capability to request for a snapshot
> that is fresh enough for a specific client but old enough to not require
> replication waits would be a good feature.

That's an interesting concept.

Thanks,

Stephen

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Darren Duncan 2013-06-13 02:10:01 Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
Previous Message Ants Aasma 2013-06-13 01:48:14 Re: Parallell Optimizer