more active plugins support

https://commitfest.postgresql.org/action/patch_view?id=1362
http://archives.postgresql.org/message-id/CAFj8pRAAukaodSQMW0oCSi7MjnSXZZM_2WYkjmBwmEEkzvJ=fg@mail.gmail.com