Re: Why format() adds double quote?

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: Why format() adds double quote?
Дата
Msg-id 20160127.104623.1166770620314832766.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: Why format() adds double quote?  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: Why format() adds double quote?  ("Daniel Verite" <daniel@manitou-mail.org>)
Список pgsql-hackers
>> IMO, it's a bug or at least an inconsistency
> 
> Personally I don't see this change being good for everything.
> 
> Let's play devil's advocate:
> 
> create table abc(U&"foo\2003" int);
> 
> U+2003 is 'EM SPACE', in Unicode's General Punctuation block.
> 
> With the current version, format('%I', attname) on this column is:
> "foo "
> 
> With the patched version, it produces this:
> foo 
> 
> So the visual hint that there are more characters at the end is lost.

What is the "visual hint"? If you are talking about psql's output, it
never adds "visual hint" (double quotations).

If you are talking about the string handling in a program, what kind
of program cares about "visiual"?

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp

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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Why format() adds double quote?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgbench stats per script & other stuff