pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Viorel Dragomir <bc@vio.ro>
To: pgsql-sql@postgresql.org
Subject: transactions
Date: Tue, 29 Jul 2003 21:14:53 +0300
Message-ID: <031a01c355fd$4f52d020$0600a8c0@fix.ro> (raw)

Is there any known issues regarding transactions.
I got something like:

begin transaction
select function1()
select into v1 function2()
if v1='ok' then commit else rollback end if

To notice that both functions have about 100 lines of code.
And both functions uses the same tables but in different modes.
function1 deletes && function2 inserts

The problem is that my web browser hangs on this query and stays that way a lot [like 30 minutes -- i forgot about it and after 30 minutes it was still trying to open the result page]

I hope tomorrow I'll resolv this and if is primary my fault I just shut up and say nothing.

regards,
vioss

view thread (4+ messages)  latest in thread

Message-ID: <031a01c355fd$4f52d020$0600a8c0@fix.ro>
Permalink:  ../031a01c355fd$4f52d020$0600a8c0@fix.ro/
Also on:    postgresql.org/message-id/031a01c355fd$4f52d020$0600a8c0@fix.ro

 · 

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: bc@vio.ro
  Subject: Re: transactions
  In-Reply-To: <031a01c355fd$4f52d020$0600a8c0@fix.ro>

* 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