From: Steve White <swhite@aip.de>
To: pgsql-bugs@postgresql.org
Subject: Portable, simple means of determining distribution directory
Date: Tue, 1 Feb 2011 12:31:09 +0100
Message-ID: <20110201113109.GB1327@cashmere.aip.de> (raw)
Hi,
This was discussed on pgsql-general 28 Jan 2011.
It would be advantageous to have a portable, simple means of including
a module from the distribution contrib/ directory.
One idea would be some kind of variable expansion with the \i command:
\i $libdir/contrib/module.sql
Another would be a special command for loading modules, maybe
loadmod( modname )
There should of course be some reasonable means of informing a user
that these have failed to find the desired module.
Note that several options were discussed. One could work, but is quite
messy, requiring special installations and code.
Also, this proposal is not an alternative to a full module system as
discussed in
http://wiki.postgresql.org/wiki/Module_Manager
(although it might facilitate development of such a thing.)
Cheers!
--
| - - - - - - - - - - - - - - - - - - - - - - - - -
| Steve White +49(331)7499-202
| E-Science Zi. 27 Villa Turbulenz
| - - - - - - - - - - - - - - - - - - - - - - - - -
| Astrophysikalisches Institut Potsdam (AIP)
| An der Sternwarte 16, D-14482 Potsdam
|
| Vorstand: Prof. Dr. Matthias Steinmetz, Peter A. Stolz
|
| Stiftung privaten Rechts, Stiftungsverzeichnis Brandenburg: III/7-71-026
| - - - - - - - - - - - - - - - - - - - - - - - - -
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: swhite@aip.de
Subject: Re: Portable, simple means of determining distribution directory
In-Reply-To: <20110201113109.GB1327@cashmere.aip.de>
References: <20110201113109.GB1327@cashmere.aip.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox