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

From: Susan Cassidy <susan(dot)cassidy(at)decisionsciencescorp(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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-16 23:53:30
Message-ID: CAE3Q8okbOH+1Nocg4D=E+Cnjk73e5AO3TEuAiGpxXSVfrg8eoQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Susan

On Wed, Apr 16, 2014 at 4:31 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Susan Cassidy <susan(dot)cassidy(at)decisionsciencescorp(dot)com> writes:
> > Is there any way to let a transaction "see" the inserts that were done
> > earlier in the transaction?
>
> It works that way automatically, as long as you're talking about separate
> statements within one transaction.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2014-04-16 23:54:07 Re: client encoding that psql command sets
Previous Message Tom Lane 2014-04-16 23:31:44 Re: any way for a transaction to "see" inserts done earlier in the transaction?