pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
To: pgsql-sql@postgresql.org
Subject: Question about isolation
Date: Wed, 28 Jan 2004 18:58:53 +0100
Message-ID: <87fze0lztu.fsf@beeblebrox.enst.fr> (raw)

If in a transaction I call an embedded function in Pl/PgSQL, in which
I have:

  delete from t where condition;
  for e in select distinct on (f) * from t where ... loop
     ...
  end loop;

Do I have the guarantee that, in any event, rows deleted from table t
by the delete won't reappear in the select result?

  Sam
-- 
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam




view thread (5+ messages)  latest in thread

Message-ID: <87fze0lztu.fsf@beeblebrox.enst.fr>
Permalink:  ../87fze0lztu.fsf@beeblebrox.enst.fr/
Also on:    postgresql.org/message-id/87fze0lztu.fsf@beeblebrox.enst.fr

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sam@rfc1149.net
  Subject: Re: Question about isolation
  In-Reply-To: <87fze0lztu.fsf@beeblebrox.enst.fr>

* 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