Re: 7.4 Crashed... Why?

From: Hunter Hillegas <lists(at)lastonepicked(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: 7.4 Crashed... Why?
Date: 2003-12-07 00:11:49
Message-ID: BBF7B045.E7E1F%lists@lastonepicked.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Tom.

Good to know that postmaster doesn't restart itself.

I did find a cron job that was running in the suspect time... But all it
does is the following:

DATE=`date +%Y%m%d`
DB1=/root/database_backup/db1_db.$DATE
su - postgres -c "/usr/local/pgsql/bin/pg_dump db1" >> $DB1
gzip $DB1

Is it possible this could cause some strange behavior? This backup script
has been running for a year (every night) w/o any trouble.

Very strange.

> From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> Date: Fri, 05 Dec 2003 22:18:33 -0500
> To: Hunter Hillegas <lists(at)lastonepicked(dot)com>
> Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
> Subject: Re: [GENERAL] 7.4 Crashed... Why?
>
> Hunter Hillegas <lists(at)lastonepicked(dot)com> writes:
>> Here's the serverlog entry:
>> LOG: recycled transaction log file "0000000000000028"
>> FATAL: lock file "/usr/local/pgsql/data/postmaster.pid" already exists
>> HINT: Is another postmaster (PID 1010) running in data directory
>> "/usr/local/pgsql/data"?
>
>> Not much. Looks like it tried to restart itself, found the old pid file and
>> crapped out... Or something. Why would it restart itself?
>
> The postmaster *never* restarts itself. What the above looks like to me
> is some random script decided to try to start a new postmaster, and the
> new postmaster quite properly refused to do anything because there
> already was a running postmaster. You should look into your cron jobs
> and see what sort of interesting stuff might lurk there.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-12-07 01:36:39 Re: 7.4 Crashed... Why?
Previous Message Tom Lane 2003-12-06 23:51:12 Re: functions/operators with 2 sets as arguments