Portable, simple means of determining distribution directory
Portable, simple means of determining distribution directory
От:
Steve White <swhite@aip.de>
Дата:
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 | - - - - - - - - - - - - - - - - - - - - - - - - -
Re: Portable, simple means of determining distribution directory
От:
Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Дата:
Steve White writes: > It would be advantageous to have a portable, simple means of including > a module from the distribution contrib/ directory. Please have a look at the Extension patch section here: https://commitfest.postgresql.org/action/commitfest_view?id=9 Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support