Josh Berkus <josh(at)agliodbs(dot)com> writes:
> Given the amount of qoute nesting we do in Postgres, I thought that we need a
> function that handles automatic doubling of quotes within strings. I've
> written one in PL/pgSQL (below). I'd really love to see this turned into a
> builtin C function.
What does this do that isn't already done by quote_literal?
regards, tom lane