Bug 75156 - /etc/init.d/postgresql inconsistency.
Summary: /etc/init.d/postgresql inconsistency.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: postgresql
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tom Lane
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-04 21:46 UTC by Terje Kvernes
Modified: 2013-07-03 02:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-25 19:51:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Terje Kvernes 2002-10-04 21:46:28 UTC
/etc/init.d/postgresql uses $PGDATA as a variable containing the path to the
database, but still hardcodes the database path if it has to init the database.
 line 122, looks as follows:

su -l postgres -s /bin/sh -c "/usr/bin/initdb --pgdata=/var/lib/pgsql/data >
/dev/null 2>&1" < /dev/null

exchanging /var/lib/pgsql/data with $PGDATA might be a good idea. ;-)

Comment 1 Andrew Overholt 2003-03-04 17:35:15 UTC
Assigning to me.

Comment 2 Andrew Overholt 2003-03-12 22:56:22 UTC
Reassigning.

Comment 3 Tom Lane 2004-08-25 19:51:01 UTC
This seems to have been fixed somewhere along the way --- the current
initscripts use $PGDATA appropriately AFAICS.


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