Re: Bug #524: Bad quoting of backslash in text arrays - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #524: Bad quoting of backslash in text arrays
Date
Msg-id 18377.1007045782@sss.pgh.pa.us
Whole thread Raw
In response to Bug #524: Bad quoting of backslash in text arrays  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> Note that the backslash between aaa and bbb should be doubled.

Yeah, I think you're right.  I get:

regression=# select a from test;
        a
------------------
 {"aaa\bbb\"ccc"}
(1 row)

regression=# select a[1] from test;
      a
-------------
 aaa\bbb"ccc
(1 row)

If the array output routine is going to backslash the ", methinks it'd
better backslash the backslash too.

Any objections to changing this behavior?

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Manish Khare"
Date:
Subject: Error in Installation
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #525: createlang for plperl fails on Tru64 version 4.0F (v 7.1.3)