Bug 1009365

Summary: incorrect PGDATA path in /opt/rh/postgresql92/root/var/lib/pgsql/.bash_profile
Product: Red Hat Software Collections Reporter: Jan Hutař <jhutar>
Component: postgresqlAssignee: Pavel Raiskup <praiskup>
Status: CLOSED ERRATA QA Contact: Jakub Prokes <jprokes>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: bblaskov, databases-maint, hhorak
Target Milestone: ---   
Target Release: 1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: postgresql92-postgresql-9.2.5-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-04 06:44:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Hutař 2013-09-18 09:46:32 UTC
Description of problem:
I have installed postgresql92-postgresql-server and noticed PGDATA in /opt/rh/postgresql92/root/var/lib/pgsql/.bash_profile points to /var/lib/pgsql/data, but I would expect it to point to /opt/rh/postgresql92/root/var/lib/pgsql/data/.


Version-Release number of selected component (if applicable):
postgresql92-postgresql-server-9.2.4-7.el6.x86_64


How reproducible:
always


Steps to Reproduce:
1. Install postgresql92-postgresql-server-9.2.4-7.el6.x86_64
2. # cat /opt/rh/postgresql92/root/var/lib/pgsql/.bash_profile


Actual results:
[ -f /etc/profile ] && source /etc/profile

PGDATA=/var/lib/pgsql/data
export PGDATA


Expected results:
[ -f /etc/profile ] && source /etc/profile

PGDATA=/opt/rh/postgresql92/root/var/lib/pgsql/data
export PGDATA


Additional info:
Maybe this is on purpose? It just seems to be strange to me.

Comment 5 errata-xmlrpc 2014-06-04 06:44:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0616.html