Bug 114846 - postgresql-server should stop itself before uninstall
Summary: postgresql-server should stop itself before uninstall
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rh-postgresql
Version: 3.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tom Lane
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-03 15:38 UTC by Mario Lorenz
Modified: 2013-07-03 03:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-23 23:00:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:307 0 normal SHIPPED_LIVE Updated rh-postgresql packages 2004-08-02 04:00:00 UTC

Description Mario Lorenz 2004-02-03 15:38:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2)
Gecko/20030708

Description of problem:
Uninstalling the postgresql server while it is running
will leave it running, yet erasing the executables, breaking
at least "service rhdb stop" (as the rhdb script obviously has gone)

I do not know what Red Hat's general policy on this matter is
(wheter a servicens hould be stopped before uninstall)
but net-snmp for example does contain code in the %preun script
to stop the server if it is running and the server is removed
(instead of upgraded).
To be consistent, and for plain convenience I suggest the same for
postgresql-server

I do not know what the implications are for "server clusters", when
several instances of postmaster run on the same host, but this
seems to be generally out of the scope of package management
(and severe breakage would ensure nevertheless, for the other
instances, as the server binaries and support files are gone)



Version-Release number of selected component (if applicable):
postgresql-server 7.3.4-9

How reproducible:
Always

Steps to Reproduce:
1. /sbin/service rhdb start
2. rpm --erase rh-postgresql-server
3. ps -axuww
    

Actual Results:  postmaster still running

Expected Results:  postmaster should have been stopped, as the
software is being removed
from the system

Additional info:

Comment 1 Suzanne Hillman 2004-02-06 20:27:26 UTC
Internal RFE bug #115131 entered; will be considered for future releases.

Comment 2 Suzanne Hillman 2004-04-21 18:59:04 UTC
postgresql-server is not supported in RHEL3.

Comment 3 Mario Lorenz 2004-04-22 08:39:10 UTC
You are joking, right ?

This is rh-postgresql-server, available via RHN, in the standard RHEL3
channel.
NOTHING, NOWHERE, IS IT SAID THAT rh-postgresql-server IS NOT SUPPORTED.

Next time, you will be telling me glibc is not supported, or what?

Comment 4 Tom Lane 2004-06-23 23:00:42 UTC
Fixed in rh-postgresql 7.3.6-3 and postgresql 7.4.3-1.


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