Hi I did a review of this patch.
1. the proposal is clean and there are not any objection against it. I checked a implementation, and it does exactly same what was proposed. 2. This hook has impact only on SET role to XXX statement, what isn't used in our critical path, so there are not any performance impact 3. I was able to apply patch cleanly without any problems, warnings. 4. All regress tests was passed 5. there are not tests and documentation, but it is usual for any hook I have not any objection I'll mark this patch as ready for commiter Regards Pavel