"Localizing" paths?

From: Tim Landscheidt <tim(at)tim-landscheidt(dot)de>
To: pgsql-docs(at)postgresql(dot)org
Subject: "Localizing" paths?
Date: 2010-07-05 20:16:15
Message-ID: m3d3v1ofao.fsf_-_@passepartout.tim-landscheidt.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-docs

Balkrishna Sharma <b_ki(at)hotmail(dot)com> wrote on -admin:

> Thanks. If I want to do at system-wide level, where do I store the psqlrc file (assuming I want to change the timing behavior system-wide)?
> (CentOS 5, Postgres 8.4)
> $ ./pg_config --sysconfdir/opt/PostgreSQL/8.4/etc/postgresql
> But I don't have /opt/PostgreSQL/8.4/etc/postgresql directory. Just creating the directory and putting a psqlrc file over there does not seem to work.
> [...]

This got me wondering: With the 8.4 RPMs, in psql's man
page, there is an unexplained
"*PREFIX*/share/psqlrc.sample"; the sample psqlrc installed
in /usr/share/pgsql/psqlrc.sample (sic!) says:

| -- Copy this to your sysconf directory (typically /usr/local/pgsql/etc) and
| -- rename it psqlrc.

Would it be feasible and desirable to "localize" the paths
in the configure stage? Pro: Fewer guesses by new users.
Con: Adds another level of complexity to the build system.

Tim

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2010-07-06 00:08:39 Re: "Localizing" paths?
Previous Message Balkrishna Sharma 2010-07-05 19:40:47 Re: Change to 'timing on' globally

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2010-07-06 00:08:39 Re: "Localizing" paths?
Previous Message Balkrishna Sharma 2010-07-05 19:40:47 Re: Change to 'timing on' globally