Re: Any advice on debugging hanging postgresql-8.1.21 (many postmaster's)

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Any advice on debugging hanging postgresql-8.1.21 (many postmaster's)
Date: 2010-10-04 10:45:01
Message-ID: 4CA9B02D.8080709@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/10/2010 5:20 PM, Alexander Farber wrote:

> # rpm -qa | grep -i postgres
> postgresql-8.1.21-1.el5_5.1

Mmm, elderly.

> On Friday I've installed a cronjob (full source code at the bottom):
>
> 3 3 * * * psql -a -f
> $HOME/bin/clean-phpbb-forum.sql

Do you rate-control it or provide any sort of interlocking so that you
don't land up with multiple copies running at once?

See "man 2 flock" for a convenient way to do that reliably from the shell.

> My biggest problem is, that I don't see any information
> from Postgres at the production site - why did it have to start
> so many postmaster's (whatever those processes do).

http://wiki.postgresql.org/wiki/FAQ#Why_does_PostgreSQL_have_so_many_processes.2C_even_when_idle.3F

As for what they're doing: see pg_stat_activity.

--
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Gravsjö 2010-10-04 11:21:44 Re: Any advice on debugging hanging postgresql-8.1.21 (many postmaster's)
Previous Message Alexander Farber 2010-10-04 09:48:20 Re: Any advice on debugging hanging postgresql-8.1.21 (many postmaster's)