Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110041 - Global dir for psqlrc file set to /usr/etc/postgresql in postgresql-8.0.3
Summary: Global dir for psqlrc file set to /usr/etc/postgresql in postgresql-8.0.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low trivial (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-21 09:00 UTC by Nathan
Modified: 2007-09-22 23:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan 2005-10-21 09:00:34 UTC
When you run psql, it looks for the global psqlrc in the /usr/etc/postgresql directory, which doesn't exist.

The postgres docs say that the global psqlrc file should be typically placed in /usr/local/etc/postgresql or 
"the distribution's sysconfig dir'.
Comment 1 Duke 2006-08-01 07:45:07 UTC
There should be some indication in the ebuild where the system-wide psqlrc file is expected to go.  The sample file is empty (except for a few comments) so maybe the ebuild should place it where psql expects it to be.  That way, when you list the package contents you'll find the psqlrc file and it'll already be in the correct path.

To determine where I should put psqlrc according to the Gentoo ebuild, I had to use Google and then come here to search for a bug relating to psql hoping someone would have mentioned it.
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2006-11-08 12:29:48 UTC
This is fixed in the latest version bumps. A note will also be displayed after the installation of postgresql about where to place a global psqlrc (in /etc/postgresql).