Re: "relation deleted while in use" encountered with Postgresql 8.0.8

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Gautam Sampathkumar <gsampathkumar(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: "relation deleted while in use" encountered with Postgresql 8.0.8
Date: 2007-12-02 18:49:53
Message-ID: 20071202184953.GA11508@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Nov 29, 2007 at 02:44:25PM -0800, Gautam Sampathkumar wrote:
> Hi,
>
> I'm using a python script w/ the PyGreSQL library to insert 1 billion rows
> into a database table for an experiment (performing a commit every 10K
> rows). My script failed at about 170M rows with the following exception:

You don't indicate your version so it could be XID wraparound, but
you'd have to be running a pretty old version to run into that still...

> After this error, my database table no longer exists and appeared to have
> been dropped, although my script was doing only INSERT statements. Any ideas
> on what might be causing this and/or if this a known issue and possible
> solutions would be greatly appreciated.

Do you run VACUUM regularly?

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
> -- John F Kennedy

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Usama Dar 2007-12-02 20:39:14 Re: [HACKERS] Stored procedure issue
Previous Message Ron Johnson 2007-12-02 18:30:11 Re: One or more tables?