Re: Can I read the data without commit - Mailing list pgsql-sql

From John Fabiani
Subject Re: Can I read the data without commit
Date
Msg-id 2083844.g5gOAHDHN5@linux-12
Whole thread Raw
In response to Re: Can I read the data without commit  (Rob Sargent <robjsargent@gmail.com>)
Responses Re: Can I read the data without commit  (Rob Sargent <robjsargent@gmail.com>)
List pgsql-sql
Yes I understand - but I want to know is it possible?  Can I read the data I 
just inserted without a commit.
Johnf
On Friday, March 23, 2012 03:46:10 PM Rob Sargent wrote:
> If possible have the review done before starting the transaction.  No
> sense in holding on to that stuff too long. Potential concurrency issues
> etc.
> 
> On 03/23/2012 03:40 PM, Jonathan S. Katz wrote:
> > On Mar 23, 2012, at 5:33 PM, John Fabiani wrote:
> >> I start a transaction.
> >> Begin
> >> 
> >> Then I insert a lot of data - let's say two hundred rows.
> >> 
> >> Now I need to read the same data (so the user can review).
> >> 
> >> If the user thinks all is right then
> >> commit.
> >> 
> >> Can I read the data I just inserted without committing?
> > 
> > Yes, as long as you run your SELECT within the transaction that you
> > started.
> > 
> > Jonathan


pgsql-sql by date:

Previous
From: Rob Sargent
Date:
Subject: Re: Can I read the data without commit
Next
From: Rob Sargent
Date:
Subject: Re: Can I read the data without commit