On 6/21/17 23:40, Tom Lane wrote:
> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>> On 6/18/17 10:14, Tom Lane wrote:
>>> Doesn't cope with backslash-quoted characters. If we're going to bother
>>> to do anything here, I think we ought to make it reversible for all
>>> possible characters.
>
>> Makes sense. Updated patch attached.
>
> That looks sane to me, though I've still not actually tested any
> interesting cases.
I have committed this. I had to build a bunch more stuff around it to
be able to test it, which I will tidy up and submit at some later point.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services