-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This GUC setting was a wart, able to bypass a check to force hints to happen before and/or after a set of characters. A weird behavior that it caused is that it was possible to define a hint within what should be considered a value in a query. For example, a query like that would use a hint: SELECT * FROM t1 JOIN t2 ON t1.val = t2.val WHERE '/*+MergeJoin(t1 t2)*/' <> ''; The reason why this parameter existed to begin with was to be more liberal with the position of a hint, because pg_hint_plan has always used a custom parser for query lookups. An upcoming patch will be able to solve these problems by introducing a proper query parser in this extension, based on what upstream uses for psql with yyac. Note that this GUC was not documented, as well, remaining hidden to the end-user.
- Loading branch information
Showing
4 changed files
with
26 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.