On Wed, Aug 10, 2011 at 1:23 AM, c k <shreeseva.learning@gmail.com> wrote:
> When I try to re-execute it, it says 'no connection to the server'. When
> checked the logs I found
>
> 2011-08-09 19:46:00 IST LOG: database system was interrupted; last known up
> at 2011-08-09 19:45:17 IST
> 2011-08-09 19:46:00 IST LOG: database system was not properly shut down;
> automatic recovery in progress
> 2011-08-09 19:46:00 IST FATAL: the database system is starting up
> 2011-08-09 19:46:00 IST LOG: consistent recovery state reached at
> 0/420B8C00
> 2011-08-09 19:46:00 IST LOG: record with zero length at 0/420B8C00
> 2011-08-09 19:46:00 IST LOG: redo is not required
> 2011-08-09 19:46:00 IST LOG: database system is ready to accept connections
> 2011-08-09 19:46:01 IST LOG: autovacuum launcher started
> Fatal Python error: PyThreadState_Get: no current thread
There should be an error before that that caused the database to not
shut down properly etc.