Joseph Barillari <jbarilla(at)princeton(dot)edu> writes:
> [ problems with long literals in plpgsql ]
I'm amazed no one has noticed this before. plpgsql_dstring_append
is broken: it assumes it never needs to more than double the size
of the string.
Too tired to commit a fix tonight, but that's where the problem
lies...
regards, tom lane