Bug 75156

Summary: /etc/init.d/postgresql inconsistency.
Product: [Retired] Red Hat Linux Reporter: Terje Kvernes <terjekv>
Component: postgresqlAssignee: Tom Lane <tgl>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: hhorak
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-25 19:51:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.