There is already an API for quoting an SQL identifier when needed. For use in the SQL code completion, it should be
augmented by methods for always quoting and for unquoting identifiers.
Created attachment 66997 [details]
Created attachment 66998 [details]
Usage of the proposed change in the SQL code completion
Please review. Since the change is very simple, I believe it to be uncontroversial and I plan to commit on Friday.