Re: Problem using COPY command to load data - Mailing list pgsql-general

From Tom Lane
Subject Re: Problem using COPY command to load data
Date
Msg-id 10885.1226431518@sss.pgh.pa.us
Whole thread Raw
In response to Problem using COPY command to load data  (Glen Beane <Glen.Beane@jax.org>)
Responses Re: Problem using COPY command to load data  (Glen Beane <Glen.Beane@jax.org>)
Re: Problem using COPY command to load data  (Glen Beane <Glen.Beane@jax.org>)
List pgsql-general
Glen Beane <Glen.Beane@jax.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

pgsql-general by date:

Previous
From: Glen Beane
Date:
Subject: Problem using COPY command to load data
Next
From: Tom Lane
Date:
Subject: Re: SHMMAX and shared_bufffers