Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 541552

Summary: PostgreSQL Server Configuration
Product: [OLD] Docs on www.gentoo.org Reporter: Mauro Crociara <realnot>
Component: Other documentsAssignee: Docs Team <docs-team>
Status: RESOLVED INVALID    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Starting_the_Server
Whiteboard:
Package list:
Runtime testing required: ---

Description Mauro Crociara 2015-02-27 18:48:56 UTC
The documentations say:

"Now start PostgreSQL and set the password for the database superuser postgres . The commands are to be performed as 'root' in the following code listing:

  Change 'trust' to 'password' for the localhost connections.  <---- here
"

We shouldn't change 'trust' to 'password' here, because otherwise we are not able to do the first login. After logged in as localhost the first time, we have to set the password for the user postgres and then change 'trust' to 'password' for the local connection.

Reproducible: Always




I have setted the severity as major because without this step, we are not able to configure the server and log in.
Comment 1 Aaron W. Swenson gentoo-dev 2015-02-27 21:48:56 UTC
You're only to make that change for localhost (host-type connections). The Unix Domain Socket (local-type) retains the trust method.

The documentation is correct.