Before starting work on a new patch it is a good idea to hear with the mailing-list if a new feature is wanted. Libzdb does not include dynamic loading of database libraries by design and there are no plans to add this. I personally very much dislike dynamic loading of libraries in the context of a database library of libzdb's design. Sorry.
Best regards -- Jan-Henrik Haukeland http://tildeslash.com/
On Nov 7, 2010, at 4:46 PM, Matthieu Verbert wrote:
Hi all, I implemented the feature noted in $subject on top of libzdb 2.7 (trunk@380). My initial goal was to produce a nicer package which would not require to install client libraries for database system I don't use. I made the feature optional (disabled by default in configure, new option '--enable-libdl'), and it is lightly tested (test/select still works after the 2 below patches are applied, both with the libdl enabled or not). The only extra-requirement is that the patch uses GCC non-standard "__attribute__ ((constructor))" to not have to modify any user. I didn't even try to implement driver unloading, although it is certainly possible too. Let me know what you think of it. Thanks,
Matthieu