Skip site navigation (1) Skip section navigation (2)

pg_exec commit causes extremely long delays

From: "Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: pg_exec commit causes extremely long delays
Date: 2006-10-25 01:10:55
Message-ID: ehmdim$1q2h$ (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
I have a TCL app which has severe delays - measured in tens of minutes at 
least - running "pg_exec $conn "commit".

The delays are so long that I used to think the app was hopelessly frozen. 
By accident, I left the app alone in its frozen state and came back a good 
eal later and seen that it was running again. The application loops through 
an import file, reading one row at a time, and issues a bunch of inserts and 
updates to various tables. There's a simple pg_exec $conn "start 
transaction" at the beginning of the loop and the commit at the end.

There are a minimum of four apps running at the same time, all reading 
different sections of the same table, all writing to the same db and the 
same tables. The other apps seem unaffected by the one app that freezes.

Any thoughts on the cause and possible solutions would be appreciated.


pgsql-interfaces by date

Next:From: Golikov AlexandrDate: 2006-10-25 09:26:27
Subject: libpq PQexecPrepared returns NULL but all ok
Previous:From: Tom LaneDate: 2006-10-23 22:43:21
Subject: Re: PQsetdbLogin() and PQconnectdb() fail on HPUX11i 64 bits with empty servername

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group