Muslimas Chochlovas wrote:
> Hello Antony, Sergei
>
>> MySQL doesn't support it now and both solutions you've describe looks
>> like a hacks that we could only refer to as "not recommended".
>>
>> I'd suggest to accept the fact that MySQL doesn't support it at the
>> moment, and let user load necessary SIGAR I_S tables manually, without a
>> loader plugin.
>
> Well I came up with 11 tables which should be loaded. So i thought it would
> be inconvenient to load all of them manually. And that was the reason I
> started searching for a way to load them with only one 'install plugin'
> coammand.
>
> Now my concern is would it make sense if I create some simple interface,
> which would allow to autoload/unload plugins? I understand it's a little bit
> out of scope of my project but if the implementation is not a complete
> overkill I would prefer to spend some time working on that. This would add a
> support for loading/unloading plugins into MySQL server and then I would be
> able to make my plugin work the way I want it.
Why not make a small shell script which loops through available plugins
and issues the necessary SQL and shell commands? Seems a lot easier
than hacking a non-reentrant plugin interface...
-jay