Re: Testing for a shared library
| От | Dave Page |
|---|---|
| Тема | Re: Testing for a shared library |
| Дата | |
| Msg-id | E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9F02@ratbert.vale-housing.co.uk обсуждение исходный текст |
| Ответ на | Testing for a shared library (Christopher Kings-Lynne <chriskl@familyhealth.com.au>) |
| Список | pgsql-hackers |
> -----Original Message-----
> From: Christopher Kings-Lynne [mailto:chriskl@familyhealth.com.au]
> 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
В списке pgsql-hackers по дате отправления: