pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Portable, simple means of determining distribution directory
2+ messages / 2 participants
[nested] [flat]

* Portable, simple means of determining distribution directory
@ 2011-02-01 11:31 Steve White <swhite@aip.de>
  2011-02-02 16:46 ` Re: Portable, simple means of determining distribution directory Dimitri Fontaine <dimitri@2ndQuadrant.fr>
  0 siblings, 1 reply; 2+ messages in thread

From: Steve White @ 2011-02-01 11:31 UTC (permalink / raw)
  To: 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
| -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Portable, simple means of determining distribution directory
  2011-02-01 11:31 Portable, simple means of determining distribution directory Steve White <swhite@aip.de>
@ 2011-02-02 16:46 ` Dimitri Fontaine <dimitri@2ndQuadrant.fr>
  0 siblings, 0 replies; 2+ messages in thread

From: Dimitri Fontaine @ 2011-02-02 16:46 UTC (permalink / raw)
  To: Steve White <swhite@aip.de>; +Cc: pgsql-bugs

Steve White <swhite@aip.de> 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-02-02 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-02-01 11:31 Portable, simple means of determining distribution directory Steve White <swhite@aip.de>
2011-02-02 16:46 ` Dimitri Fontaine <dimitri@2ndQuadrant.fr>

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