Custom modification to the existing plugin

Is there any way to add a custom modification to the existing plugin? I want to add some features in the PostgreSQL plugin, which is not generic and customized only for our use case.