Re: Testing for a shared library

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Testing for a shared library
Date: 2005-09-07 08:15:37
Message-ID: 431EA1A9.9050500@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

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

Chris

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2005-09-07 08:26:35 Re: Testing for a shared library
Previous Message Dave Page 2005-09-07 08:11:54 Re: Testing for a shared library