why do i get 2 as answer for select length('aa '::char(6)); - Mailing list pgsql-novice

From john snow
Subject why do i get 2 as answer for select length('aa '::char(6));
Date
Msg-id CAE67tvV20x9GtyPqfZdoK+WxxKYLC3SEjovw+xwGkVKcMqzsow@mail.gmail.com
Whole thread Raw
Responses Re: why do i get 2 as answer for select length('aa '::char(6));
Re: why do i get 2 as answer for select length('aa '::char(6));
Re: why do i get 2 as answer for select length('aa '::char(6));
List pgsql-novice
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 by date:

Previous
From: Purav Chovatia
Date:
Subject: symlinks in pg_xlog to wal of previous timeline, after a failover
Next
From: Andrej
Date:
Subject: Re: why do i get 2 as answer for select length('aa '::char(6));