Bug 1043477

Summary: trust postgres's local connections during upgrade process
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Raiskup <praiskup>
Component: postgresqlAssignee: Pavel Raiskup <praiskup>
Status: CLOSED CURRENTRELEASE QA Contact: Jakub Prokes <jprokes>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: databases-maint, devrim, hhorak, jmlich, jprokes, jscotka, jstanek, praiskup, tgl
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: postgresql-9.2.6-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1040364 Environment:
Last Closed: 2014-05-27 13:26:14 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:
Bug Depends On: 1040364    
Bug Blocks:    

Description Pavel Raiskup 2013-12-16 12:23:36 UTC
+++ This bug was initially created as a clone of Bug #1040364 +++

Description of problem:
The update may fail if pg_hba.conf contains specific settings. It seems reasonable to assume that the user has changed the default settings.


Version-Release number of selected component (if applicable):
The postgresql-setup is fedora/rhel specific script. It is included in all currently supported versions of fedora (rawhide-f18).

How reproducible:

Steps to Reproduce:
$ echo "host    all         all         0.0.0.0          0.0.0.0      md5
host    all         all         ::1/128                       md5
local   all         all                                       md5">/var/lib/pgsql/data/pg_hba.conf
$ postgresql-setup upgrade

Actual results:
upgrade failed


Expected results:
Sucessfull upgrade. Additionally, the user should be warned about configuration changes.

Additional info:
See attached patch.