Re: 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: Alban Hertroys <haramrae(at)gmail(dot)com>
Cc: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Re: any way for a transaction to "see" inserts done earlier in the transaction?
Date: 2014-04-17 15:05:55
Message-ID: CAE3Q8okMDh5mE+nkKNZ_iC56+N-z+oq7Fy2p35RYALe+DK0-+A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I suppose it's possible. I've never seen this behavior before, but I don't
think I've ever used this same scenario before. It is slightly unusual.

Susan

On Wed, Apr 16, 2014 at 11:55 PM, Alban Hertroys <haramrae(at)gmail(dot)com> wrote:

> On 17 Apr 2014, at 2:49, David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
> wrote:
>
> > Robert DiFalco wrote
> >> Two common cases I can think of:
> >>
> >> 1. The PERL framework is only caching the insert and does not actually
> >> perform it until commit is issued.
> >
> > Wouldn't the same mechanism cache the corresponding SELECT?
>
> Not likely, or if it did it wouldn't be able to know what id was returned
> from the function (which calls nextval(), but that isn't relevant here
> since it's marked volatile).
> That makes it a possible scenario for what's being witnessed here.
>
> Alban Hertroys
> --
> If you can't see the forest for the trees,
> cut the trees and you'll find there is no forest.
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Susan Cassidy 2014-04-17 15:06:32 Re: Re: any way for a transaction to "see" inserts done earlier in the transaction?
Previous Message Susan Cassidy 2014-04-17 15:04:28 Re: any way for a transaction to "see" inserts done earlier in the transaction?