Re: Postgres gets stuck - Mailing list pgsql-performance

From Chris
Subject Re: Postgres gets stuck
Date
Msg-id 4461391D.2000800@gmail.com
Whole thread Raw
In response to Postgres gets stuck  ("Craig A. James" <cjames@modgraph-usa.com>)
Responses Re: Postgres gets stuck
List pgsql-performance
> This is a deadly bug, because our web site goes dead when this happens,
> and it requires an administrator to log in and kill the stuck postgres
> process then restart Postgres.  We've installed failover system so that
> the web site is diverted to a backup server, but since this has happened
> twice in one week, we're worried.
>
> Any ideas?

Sounds like a deadlock issue.

Do you have query logging turned on?

Also, edit your postgresql.conf file and add (or uncomment):

stats_command_string = true

and restart postgresql.

then you'll be able to:

select * from pg_stat_activity;

to see what queries postgres is running and that might give you some clues.

--
Postgresql & php tutorials
http://www.designmagick.com/

pgsql-performance by date:

Previous
From: "Craig A. James"
Date:
Subject: Postgres gets stuck
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Arguments Pro/Contra Software Raid