Re: Writeable CTE patch - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Writeable CTE patch
Date
Msg-id 20091207220635.GP3552@alvh.no-ip.org
Whole thread Raw
In response to Re: Writeable CTE patch  (Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi>)
List pgsql-hackers
Marko Tiikkaja escribió:
> Tom Lane wrote:
> >The only thing that I'd be comfortable with is
> >copying the snap and modifying the copy.
> 
> I don't see an easy way to do that with the current code;
> CopySnapshot() is static and PushUpdatedSnapshot() seems to be a bit
> of a pain since it messes up some of the existing code which uses
> the active snapshot stack.  Any ideas?

That API is rather new.  Maybe we need a new entry point, say
GetActiveSnapshotCopy or some such.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Exclusion Constraint vs. Constraint Exclusion
Next
From: Stephen Cook
Date:
Subject: Re: Exclusion Constraint vs. Constraint Exclusion