Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 96981 - postmaster does not restart after ungraceful exit
postmaster does not restart after ungraceful exit
Product: Red Hat Linux
Classification: Retired
Component: postgresql (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Lane
Depends On:
  Show dependency treegraph
Reported: 2003-06-07 16:02 EDT by Laurent Deniel
Modified: 2013-07-02 22:59 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-05 15:34:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch to /etc/init.d/postgresql (474 bytes, patch)
2003-06-07 16:09 EDT, Laurent Deniel
no flags Details | Diff

  None (edit)
Description Laurent Deniel 2003-06-07 16:02:05 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120

Description of problem:
In case of ungraceful exit of postmaster (or machine crash), the 
postmaster deamon can no longer be restarted at boot phase or using 
/etc/init.d/postgresql start

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1./etc/init.d/postgresql stop
2.touch /var/lib/pgsql/data/postmaster.pid
3./etc/init.d/postgresql start

Actual Results:  [FAILED]

Expected Results:  [OK]

Additional info:

Fix attached.
Comment 1 Laurent Deniel 2003-06-07 16:09:01 EDT
Created attachment 92242 [details]
patch to /etc/init.d/postgresql
Comment 2 Andrew Overholt 2003-06-09 10:12:50 EDT
The init script is currently being completely overhauled.  I will make sure that
your suggestion is taken into consideration.
Comment 3 Tom Lane 2004-10-05 15:34:23 EDT
I've finally found a hack that solves this problem without the risks
involved in forcibly deleting the lock file.  It's fixed for FC3 and
RHEL3 U4.  See bug #134090.

Note You need to log in before you can comment on or make changes to this bug.