pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: aspire420@hotpop.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Selects query inside function must read commited data
Date: Sun, 25 Jan 2004 17:13:53 +0000
Message-ID: <1075050833.1496.18.camel@linda.lfix.co.uk> (raw)
In-Reply-To: <4013EF71.9080603@sancharnet.in>
References: <40138377.2070503@sancharnet.in>
	<1075047334.1491.16.camel@linda.lfix.co.uk>
	<4013EF71.9080603@sancharnet.in>

On Sun, 2004-01-25 at 16:31, V i s h a l Kashyap @ [Sai Hertz And
Control Systems] wrote:
> Dear Oliver Elphick  ,
> > > If I am not wrong PostgreSQL select statements works on committed data
> > > thus the new
> > > inserted data at #3 must not be available to sai_func_b() till #5
> > >     
> > No.  All operations by a single transaction are visible inside the
> > transaction. Therefore an encapsulated function can see anything already
> > done in the whole transaction.  A function must be entirely inside a
> > transaction and cannot start a transaction, so there can never be any
> > problem about this.
> >   
> Loads of thanks  for the kind reply .
> Would be greatefull if you kindly post some links/refrences to support
> your answer for the said. 

It's in the manual, somewhere; or try it and verify that what I say is
correct.
-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "My little children, let us not love in word, neither 
      in tongue; but in deed and in truth."          
                                            I John 3:18 




view thread (7+ messages)  latest in thread

Message-ID: <1075050833.1496.18.camel@linda.lfix.co.uk>
Permalink:  ../1075050833.1496.18.camel@linda.lfix.co.uk/
Also on:    postgresql.org/message-id/1075050833.1496.18.camel@linda.lfix.co.uk

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: olly@lfix.co.uk, aspire420@hotpop.com
  Subject: Re: Selects query inside function must read commited data
  In-Reply-To: <1075050833.1496.18.camel@linda.lfix.co.uk>
  References: <40138377.2070503@sancharnet.in> <1075047334.1491.16.camel@linda.lfix.co.uk> <4013EF71.9080603@sancharnet.in> <1075050833.1496.18.camel@linda.lfix.co.uk>

* 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