Re: BUG #16502: EXPLAIN JSON format adds extra quotes around index names
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Euler Taveira <euler.taveira@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org, m.sakrejda@gmail.com
Date: 2020-06-20T19:06:40Z
Lists: pgsql-bugs
Euler Taveira <euler.taveira@2ndquadrant.com> writes: > Indeed, relation names should return the same. The fact that > explain_get_index_name always calls quote_identifier is the culprit; it > should call quote_identifier only when the format is TEXT. Patch is > attached. Agreed as to the bug, but I think we ought to fix it by redefining explain_get_index_name's API as "return the bare index name always", and let the callers apply quoting. The callers seem to all have separate code paths for text format already. Furthermore, if explain_get_index_name needs to have different behavior for text format, that requirement propagates to explain_get_index_name_hook functions --- and I don't think we want to change the signature for that hook. regards, tom lane
Commits
-
Undo double-quoting of index names in non-text EXPLAIN output formats.
- dda25c599fcf 9.5.23 landed
- d3d8755180b6 12.4 landed
- bd53ea2b270f 9.6.19 landed
- 6d9f7a094ca7 10.14 landed
- 63d2ac23b018 14.0 landed
- 57f8b9913b91 13.0 landed
- 35a8e227e6c6 11.9 landed