LookupExplicitNamespace() missing InvokeNamespaceSearchHook

From: Simon Riggs <simon(dot)riggs(at)enterprisedb(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: LookupExplicitNamespace() missing InvokeNamespaceSearchHook
Date: 2021-02-03 14:20:30
Message-ID: CANbhV-Eg_bvt1Xq-VKJxu_+54pcAd72c2c=WuUPLzK7Bkidpfw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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/

Attachment Content-Type Size
missing_namespace_search_hook_invocation.v1.patch application/octet-stream 527 bytes

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2021-02-03 16:43:35 BUG #16851: Master DB was unreachable and both master,slave entered into Standby while performing the switchover
Previous Message Tom Lane 2021-02-02 15:51:23 Re: BUG #16849: index and table data inconsistency