Add LEAKPROOF indication in functions
|PostGIS Fund Me
The LEAKPROOF keyword is supported since PostgreSQL 9.2, which is our minimum requirement. By default all functions are created as NOT leakproof, meaning they cannot be used in views with "security barrier" option.
We might want to tweak that definition carefully looking at each of the functions.