Portable, simple means of determining distribution directory

From: Steve White <swhite(at)aip(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Portable, simple means of determining distribution directory
Date: 2011-02-01 11:31:09
Message-ID: 20110201113109.GB1327@cashmere.aip.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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
| - - - - - - - - - - - - - - - - - - - - - - - - -

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexandre 2011-02-01 15:20:51 BUG #5859: XML result in line and column
Previous Message Steve White 2011-02-01 11:21:20 Feature request: include script file into function body