Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> so we cannot simply implement quote_ident on client side :(. So we
> have to use a real query.
> It is acceptable for you?
No, certainly not --- that adds a boatload of failure conditions.
Just quote it unconditionally.
regards, tom lane