backslash in psql output

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема backslash in psql output
Дата
Msg-id 199810092024.QAA26179@candle.pha.pa.us
обсуждение исходный текст
Список pgsql-hackers
I believe Tom Lane removed the double-backslash from the psql output by
modifying PQprint.

I recommend that is reversed, because psql escapes out the table column
delimiters with a single backslash, and now the format will be
ambigious.

    rtest=> create table test(x text);
    ERROR:  test relation already exists
    test=> create table test3(x text);
    CREATE
    test=> insert into test3 values ('\\x');
    INSERT 322185 1
    test=> select * from test3;
    x
    --
    \x
    (1 row)


This used to show as:

    x
    --
    \\x
    (1 row)

Comments?

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] dynamic libraries
Следующее
От: Tom Ivar Helbekkmo
Дата:
Сообщение: Re: [HACKERS] Open 6.4 items