Re: Why format() adds double quote?

Поиск
Список
Период
Сортировка
От Dickson S. Guedes
Тема Re: Why format() adds double quote?
Дата
Msg-id CAHHcrerFYPB0+4p3H3hvt8O-HwNYkAaY+bcxyx6PQ4tfm1snnA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Why format() adds double quote?  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
2016-01-26 23:40 GMT-02:00 Tatsuo Ishii <ishii@postgresql.org>:
>> 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
Дата:
Сообщение: Re: extend pgbench expressions with functions
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Why format() adds double quote?