Quote an identifier following PostgreSQL’s server-side quote_identifier()
rules: return it bare only when it is all lower-case ASCII letters,
digits, and underscores, does not start with a digit, and is not a
keyword outside the unreserved category; otherwise wrap it in double
quotes with embedded quotes doubled.