LookupNamespaceNoError() calls InvokeNamespaceSearchHook() for
pg_temp, yet LookupExplicitNamespace() does not do so for pg_temp.
There's no explanation for that behavior and it just seems to be a missing call.
So anyone writing a hook will have incomplete behavior, varying
according to which call is used internally.
Patch attached.
--
Simon Riggs http://www.EnterpriseDB.com/