Pavel Stehule <pavel.stehule@gmail.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