Re: [GENERAL] 'a' == 'a '

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] 'a' == 'a '
Дата
Msg-id 14453.1129845234@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] 'a' == 'a '  ("Dann Corbit" <DCorbit@connx.com>)
Ответы Re: [GENERAL] 'a' == 'a '  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
"Dann Corbit" <DCorbit@connx.com> writes:
> I guess that additional ambiguity arises if you add additional spaces to
> the end.  Many database systems solve this by trimming the characters
> from the end of the string upon storage and the returned string will not
> have any trailing blanks.

Can you document that?  ISTM that that would effectively make char(n)
and varchar(n) exactly equivalent, which is ... um ... a bit stupid.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] 'a' == 'a '
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Spinlocks, yet again: analysis and proposed patches