pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul B. Anderson <paul@pnlassociates.com>
To: pgsql-admin@postgresql.org
Subject: Large transaction problem
Date: Mon, 08 Nov 2004 17:58:12 -0500
Message-ID: <418FFA04.8090106@pnlassociates.com> (raw)

I'm trying to move data from an Oracle database into postgresql 7.4.3.  
I have a program that is extracting data and writing it to an sql script 
as a long series of inserts (20,000 at a time).  When I run these 
scripts using psql, I occassionally get a problem that is reported as

ERROR:  canceling query due to user request

And then it won't clear.  If I quit psql and start it again, every sql 
statement on that database gives this error after 30 seconds (approx) of 
hanging.  The only way to clear this is to restart the postgresql 
backend and then try vacuuming a couple of times.  It eventually clears 
in this manner.

What am I doing wrong?  I increased the WAL segments from 3 to 30 but 
this did not get rid of the problem.  Is there a limit on the size of a 
transaction?

Thanks.

Paul

view thread (9+ messages)  latest in thread

Message-ID: <418FFA04.8090106@pnlassociates.com>
Permalink:  ../418FFA04.8090106@pnlassociates.com/
Also on:    postgresql.org/message-id/418FFA04.8090106@pnlassociates.com

 · 

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: paul@pnlassociates.com
  Subject: Re: Large transaction problem
  In-Reply-To: <418FFA04.8090106@pnlassociates.com>
  References: <418FFA04.8090106@pnlassociates.com>

* 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