From: Jonathan S. Katz <jonathan.katz@excoventures.com>
To: John Fabiani <johnf@jfcomputer.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Can I read the data without commit
Date: Fri, 23 Mar 2012 17:40:49 -0400
Message-ID: <F4CA35B7-B59B-4226-BEC4-AA13636F446E@excoventures.com> (raw)
In-Reply-To: <2388789.tLQtTxa0cR@linux-12>
References: <2388789.tLQtTxa0cR@linux-12>
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: jonathan.katz@excoventures.com, johnf@jfcomputer.com
Subject: Re: Can I read the data without commit
In-Reply-To: <F4CA35B7-B59B-4226-BEC4-AA13636F446E@excoventures.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