I guess this is something PostgreSQL specific, right? If this is the case then this is the wrong place to filter namespaces as this method applies to all platforms.