Skip site navigation (1) Skip section navigation (2)

Can I read the data without commit

From: John Fabiani <johnf(at)jfcomputer(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Can I read the data without commit
Date: 2012-03-23 21:33:00
Message-ID: 2388789.tLQtTxa0cR@linux-12 (view raw or flat)
Thread:
Lists: pgsql-sql
Hi,
I know this is a newbie question but I have never had the need to do the 
following.

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?

Johnf

Responses

pgsql-sql by date

Next:From: Jonathan S. KatzDate: 2012-03-23 21:40:49
Subject: Re: Can I read the data without commit
Previous:From: Edward W. RouseDate: 2012-03-22 21:05:41
Subject: Re: ignore case in where clause

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group