Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
builtins: add builtin functions which cast to OID to the distSQL bloc…
…k list Distributed SQL which executes functions or casts to OID rely on `planner` receiver functions to execute internal SQL to get information about the OID from system tables. If these casts occur on a remote processor, the `planner` is not accessible and a dummy planner is used, which does not implement these receiver functions. To prevent internal errors, these casts or problem functions are added to a distSQL block list by `distSQLExprCheckVisitor`. A cast to an OID is can also be done via a builtin function of the same name as the target type, e.g. `regproc`. These builtins do not currently have `DistsqlBlocklist` set, allowing distributed execution. The solution is to mark `DistsqlBlocklist` as true for any builtin function which casts to an OID type. Fixes #98373 Release note: None
- Loading branch information