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 по дате отправления: