From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Can I read the data without commit
Date: Fri, 23 Mar 2012 15:46:10 -0600
Message-ID: <4F6CEF22.5040205@gmail.com> (raw)
In-Reply-To: <F4CA35B7-B59B-4226-BEC4-AA13636F446E@excoventures.com>
References: <2388789.tLQtTxa0cR@linux-12>
<F4CA35B7-B59B-4226-BEC4-AA13636F446E@excoventures.com>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: robjsargent@gmail.com
Subject: Re: Can I read the data without commit
In-Reply-To: <4F6CEF22.5040205@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox