Re: any way for a transaction to "see" inserts done earlier in the transaction?

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Susan Cassidy <susan(dot)cassidy(at)decisionsciencescorp(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: any way for a transaction to "see" inserts done earlier in the transaction?
Date: 2014-04-17 01:26:07
Message-ID: 534F2DAF.5090808@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/16/2014 07:06 PM, Susan Cassidy wrote:
> Yes, it is the same connection. It is all the same transaction.
>
> Susan
>
>
> On Wed, Apr 16, 2014 at 5:00 PM, John R Pierce <pierce(at)hogranch(dot)com <mailto:pierce(at)hogranch(dot)com>> wrote:
>
> On 4/16/2014 4:53 PM, Susan Cassidy wrote:
>
> Well, it isn't working for me right now. It can't "see" a row that was inserted earlier in the transaction. It is a new primary key, and when I SELECT it, it isn't found.
>
>
> are you using the same connection ? it won't be visible to a different connection until its committed.
>
> --
> john r pierce 37N 122W
> somewhere on the middle of the left coast
>

Any chance you accidentally fired of a rollback?

-Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2014-04-17 02:32:06 Re: any way for a transaction to "see" inserts done earlier in the transaction?
Previous Message David G Johnston 2014-04-17 00:49:35 Re: any way for a transaction to "see" inserts done earlier in the transaction?