pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: lud_nowhere_man@yahoo.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Locking that will delayed a SELECT
Date: Fri, 18 Oct 2002 09:33:09 +0200
Message-ID: <3DAFB935.5E6980B1@rodos.fzk.de> (raw)

>    Suppose I have a transaction (T1) which executes a
> complicated stored procedure. While T1 is executing,
> trasaction #2 (T2)  begins to execute.
>
>     T1 take more time to execute that T2 in such a way
> that T2 finished earlier than T1. The result is that
> t2 returns set of data before it can be modified by
> T1.
>
>    Given the above scenario. Is there a way such that
> while T2 will only read that value updated by T1 (i.e.
> T2 must wait until T1 is finished) ? What locks should
> I used since a portion of T1 contains SELECT
> statements? Should I used the "SERIALIZABLE
> isolation".

What's wrong about this question?
I'm interested in an answer, too.

Regards, Christoph




view thread (8+ messages)  latest in thread

Message-ID: <3DAFB935.5E6980B1@rodos.fzk.de>
Permalink:  ../3DAFB935.5E6980B1@rodos.fzk.de/
Also on:    postgresql.org/message-id/3DAFB935.5E6980B1@rodos.fzk.de

 · 

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: ch@rodos.fzk.de, lud_nowhere_man@yahoo.com
  Subject: Re: Locking that will delayed a SELECT
  In-Reply-To: <3DAFB935.5E6980B1@rodos.fzk.de>

* 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