Re: Problem using COPY command to load data

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Glen Beane <Glen(dot)Beane(at)jax(dot)org>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problem using COPY command to load data
Date: 2008-11-11 19:25:18
Message-ID: 10885.1226431518@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Glen Beane <Glen(dot)Beane(at)jax(dot)org> writes:
> I am using the copy_from command from the python psycopg2 library to do some
> bulk data loading of a postgres database. This had been working OK, until
> my script barfed because I was being careless, and it seemed to leave the
> database in a strange state that I can't recover from.

What PG version is this exactly? What does pg_stat_activity show? Is
there any indication of un-granted locks in pg_locks?

The most direct evidence about why it's stuck would probably be had by
attaching to the backend process with gdb and getting a stack trace.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-11-11 19:31:32 Re: SHMMAX and shared_bufffers
Previous Message Alvaro Herrera 2008-11-11 19:12:26 Re: SHMMAX and shared_bufffers