Re: Testing for a shared library - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Testing for a shared library
Date
Msg-id 431EAB8A.6010803@sigaev.ru
Whole thread Raw
In response to Testing for a shared library  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Testing for a shared library
List pgsql-hackers
As you know, presence of shared library doesn't mean precense of module in db :).


You can try selecting:

# select count(*) from pg_opclass where opcname = 'tsvector_ops';

or, more general,

# select count(*) from pg_proc where probin = '$libdir/tsearch2';


But not all modules adds new function...




Christopher Kings-Lynne wrote:
> Hi,
> 
> Is there any way of checking to see if a particular shared library is 
> installed?
> 
> eg. select is_shared_library('$libdir/tsearch2');
> 
> If not, can we please have one :D
> 
> This will greatly help in GUI apps like phpPgAdmin...
> 
> Chris
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 


pgsql-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: Re: Testing for a shared library
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: Testing for a shared library