why do i get 2 as answer for select length('aa '::char(6));

Поиск
Список
Период
Сортировка
as well as select length('aa'::char(6));   

i thought if the string to be stored is shorter than specified length , it will be padded with spaces?

i'm using version 10.0 on windows 10

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

Предыдущее
От: Purav Chovatia
Дата:
Сообщение: symlinks in pg_xlog to wal of previous timeline, after a failover
Следующее
От: Andrej
Дата:
Сообщение: Re: why do i get 2 as answer for select length('aa '::char(6));