ossc-db / pg_hint_plan

Extension adding support for optimizer hints in PostgreSQL
Other
696 stars 103 forks source link

Simplify routines in charge of parsing hints #133

Closed michaelpq closed 1 year ago

michaelpq commented 1 year ago

The set of callbacks in charge of parsing the hints are named *HintParse(), and include arguments for a Query and a HintState. It happens that none of these arguments are used by all the callbacks doing the hint parsing, so it is possible to simplify the whole.

Simplification discovered while scanning the area.

michaelpq commented 1 year ago

Hearing nothing, applied this cleanup as of fb4c811.