Alena Rybakina <a.rybakina@postgrespro.ru> writes:
> I noticed that there is a comment that values with NULL are not
> processed there, but in fact this function calls the construct_md_array
> function, which
> contains a comment that it can handle NULL values.
Right. construct_md_array has a "bool *nulls" argument, but
construct_array doesn't --- it passes NULL for that to
construct_md_array, which will therefore assume there are no null
array elements.
regards, tom lane