> -----Original Message-----
> From: Christopher Kings-Lynne [mailto:[EMAIL PROTECTED] 
> Sent: 07 September 2005 09:16
> To: Dave Page
> Cc: PostgreSQL-development
> Subject: Re: [HACKERS] Testing for a shared library
> 
> >>Is there any way of checking to see if a particular shared 
> library is 
> >>installed?
> >>
> >>eg. select is_shared_library('$libdir/tsearch2');
> > 
> > 
> > How well do you know the library you are looking for? You 
> could just try
> > creating a function from it and seeing if it fails.
> 
> I know it pretty well, but it seems kind of lame to have to 
> create the 
> function and test for it, especialyl if you have a non-error 
> tolerating 
> environment.

Yeah, but if you need a quick hack...

> Plus, you have to know what exported functions it has and you have to 
> worry about creating any input and return types, etc.

That's why I asked how well you know the library :-)

/D

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to