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

Bug 262165

Summary: default dev-db/postgresql installation does not have any log, nor does the documentation
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 330927    
Bug Blocks:    

Description Thomas Capricelli 2009-03-11 18:05:55 UTC
After installing dev-db/postgresql, configuring it and starting it (it runs fine), i can't find any log. I've tried adding '-l' to /etc/conf.d/postgresql:PGOPTS, setting /etc/conf.d/postgresql:PGLOG and various other things as found on internet. I've looked for files in /var/log and /var/lib/postgresql/ and could not find a log file or any indication on how to get one.


More importantly, nothing on http://www.gentoo.org/doc/en/postgres-howto.xml is about log, while it is (to me) one of the most important thing to consider when installing any kind of server stuff on linux.

Reproducible: Always



Expected Results:  
I think a default installation should have a (minimum) log
The documentation should tell where to look for problems, and/or how to get logs working.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2009-03-12 17:32:43 UTC
Well, this is mainly a documentation problem. Because we follow upstream there and they don't configure logging per default.
The place to look on how to configure logging is upstream's documentation...
Comment 2 Thomas Capricelli 2009-03-12 18:13:18 UTC
maybe you could at least say it somewhere (mainly on the documentation page on the main site, which is pretty useless without that).

I suggest to add also that the main configuration files are : 
* /var/lib/postgresql/data/postgresql.conf
* /var/lib/postgresql/data/pg_hba.conf

That would have helped a lot...