Re: Bug on CHARACTER(n) ?
От
Tom Lane
Тема
Re: Bug on CHARACTER(n) ?
Дата
Msg-id
12568.1133198398@sss.pgh.pa.us
Ответ на
Bug on CHARACTER(n) ? (Stefano Reksten)
Список
Дерево обсуждения
Bug on CHARACTER(n) ? Stefano Reksten <sreksten@sdb.it>
Re: Bug on CHARACTER(n) ? Tom Lane <tgl@sss.pgh.pa.us>
Re: Bug on CHARACTER(n) ? Pawel Bernat <asm@asm.flynet.pl>
Re: Bug on CHARACTER(n) ? Pawel Bernat <asm@vlo.olsztyn.pl>
Stefano Reksten writes: > SELECT length(name), name from test; > length | name > --------+------------ > 4 | test > Should not a char(10) insert 6 padding spaces? It does, as you can see in the above output; but the padding spaces are considered semantically insignificant and are therefore ignored by length() and by concatenation. If you think that trailing spaces are meaningful data, then use varchar(n) or text. regards, tom lane
В списке pgsql-bugs по дате отправления
От: Alvaro Herrera
Дата: