This is a discussion on Re: Testing for a shared library within the pgsql Hackers forums, part of the PostgreSQL category; --> > -----Original Message----- > From: pgsql-hackers-owner@postgresql.org > [mailto gsql-hackers-owner@postgresql.org] On Behalf Of > Christopher Kings-Lynne > Sent: 07 September ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > -----Original Message----- > From: pgsql-hackers-owner@postgresql.org > [mailto > Christopher Kings-Lynne > Sent: 07 September 2005 09:03 > To: PostgreSQL-development > Subject: [HACKERS] Testing for a shared library > > Hi, > > 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. Regards, Dave. ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| ||||
| >>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 ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |