Kris Jurka <books@ejurka.com> writes:
> Are you considering NULL padding arrays constructed with the
> ARRAY[] syntax?
Don't think anyone's really thought about it.
> we should consistently pad with 0 instead of sometimes padding and sometimes
> truncating.
"Pad with 0" is a meaningless concept as soon as you think about
nonnumeric data types. I'm not very sure what's even happening
inside the code --- it's a bit surprising it doesn't crash outright
on pass-by-reference data types ...
I'd agree that the truncation behavior is wrong, but I don't want to
get rid of it by causing the padding behavior to happen more often.
regards, tom lane