Re: Why format() adds double quote?

Поиск
Список
Период
Сортировка
Искать
От
Dickson S. Guedes
Тема
Re: Why format() adds double quote?
Дата
Msg-id
CAHHcrerFYPB0+4p3H3hvt8O-HwNYkAaY+bcxyx6PQ4tfm1snnA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Why format() adds double quote? Tatsuo Ishii <ishii@postgresql.org>
Re: Why format() adds double quote? Pavel Stehule <pavel.stehule@gmail.com>
Re: Why format() adds double quote? Tatsuo Ishii <ishii@postgresql.org>
Re: Why format() adds double quote? Pavel Stehule <pavel.stehule@gmail.com>
Re: Why format() adds double quote? Tatsuo Ishii <ishii@postgresql.org>
Re: Why format() adds double quote? Pavel Stehule <pavel.stehule@gmail.com>
Re: Why format() adds double quote? Robert Haas <robertmhaas@gmail.com>
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? "Daniel Verite" <daniel@manitou-mail.org>
Re: Why format() adds double quote? Tatsuo Ishii <ishii@postgresql.org>
Re: Why format() adds double quote? "Daniel Verite" <daniel@manitou-mail.org>
Re: Why format() adds double quote? Tom Lane <tgl@sss.pgh.pa.us>
Re: Why format() adds double quote? Tatsuo Ishii <ishii@postgresql.org>
Re: Why format() adds double quote? Pavel Stehule <pavel.stehule@gmail.com>
Re: Why format() adds double quote? Tatsuo Ishii <ishii@postgresql.org>
Re: Why format() adds double quote? Pavel Stehule <pavel.stehule@gmail.com>
Re: Why format() adds double quote? Tatsuo Ishii <ishii@postgresql.org>
Re: Why format() adds double quote? Pavel Stehule <pavel.stehule@gmail.com>
Re: Why format() adds double quote? Tatsuo Ishii <ishii@postgresql.org>
Re: Why format() adds double quote? Pavel Stehule <pavel.stehule@gmail.com>
Re: Why format() adds double quote? "Daniel Verite" <daniel@manitou-mail.org>
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? "Dickson S. Guedes" <listas@guedesoft.net>
Re: Why format() adds double quote? "Dickson S. Guedes" <listas@guedesoft.net>
2016-01-26 23:40 GMT-02:00 Tatsuo Ishii :
>> Thanks for advocate, I see here that it even produces that output with
>> simple spaces.
>>
>> postgres=# create table x ("aí      " text);
>> CREATE TABLE
>> postgres=# \d x
>>         Tabela "public.x"
>>   Coluna  | Tipo | Modificadores
>> ----------+------+---------------
>>  aí       | text |
>>
>>
>> This will break copy&paste user actions and scripts that parses that output.
>>
>> Maybe the patch should consider left/right non-printable chars to
>> choose whether to show or not the " ?
>
> This is a totally different story from the topic discussed in this
> thread. psql never adds double quotations to column name even with
> upper case col names.

Indeed, you are right.

> If you want to change the existing psql's behavior, propose it
> yourself.

It could be interesting, maybe using a \pset quote_columns_char, I'll
think about, thank you.

Best regards.
-- 
Dickson S. Guedes
mail/xmpp: guedes@guedesoft.net - skype: guediz
http://github.com/guedes - http://guedesoft.net
http://www.postgresql.org.br


В списке pgsql-hackers по дате отправления
От: Fabien COELHO
Дата:
От: Tatsuo Ishii
Дата:
FAQ