Re: Why format() adds double quote?

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: Why format() adds double quote?
Дата
Msg-id 2f1ee47a-77b2-409f-a9f1-24f1673c6025@mm
обсуждение исходный текст
Ответ на Re: Why format() adds double quote?  (Tatsuo Ishii <ishii@postgresql.org>)
Ответы Re: Why format() adds double quote?  ("Dickson S. Guedes" <listas@guedesoft.net>)
Re: Why format() adds double quote?  (Tatsuo Ishii <ishii@postgresql.org>)
Re: Why format() adds double quote?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
    Tatsuo Ishii wrote:

> 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.

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite



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

Предыдущее
От: Corey Huinker
Дата:
Сообщение: Re: Add generate_series(date,date) and generate_series(date,date,integer)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Speedup twophase transactions