Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 017E4632672 for ; Mon, 5 Jul 2010 17:16:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 08249-01 for ; Mon, 5 Jul 2010 20:16:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 2A2736332BE for ; Mon, 5 Jul 2010 17:16:30 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OVs5b-0005c2-AU for pgsql-docs@postgresql.org; Mon, 05 Jul 2010 22:16:27 +0200 Received: from d222146.adsl.hansenet.de ([80.171.222.146]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jul 2010 22:16:27 +0200 Received: from tim by d222146.adsl.hansenet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jul 2010 22:16:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: pgsql-docs@postgresql.org To: pgsql-docs@postgresql.org From: Tim Landscheidt Subject: "Localizing" paths? Date: Mon, 05 Jul 2010 20:16:15 +0000 Organization: Lines: 21 Message-ID: References: <1278349811-sup-6775@alvh.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: d222146.adsl.hansenet.de Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:O3kb7YYY1gRq/urTnGrKv/2jmKc= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/52 X-Sequence-Number: 5708 Balkrishna Sharma 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