I have a table like :
CREATE TABLE my_table
(
id bigint not null,
available_region_code character varying(255)[],
is_valid bigint,
)
I want usearray_length(), cardinality() or available_region_code ='{}' to select empty available_region_code columns but it failed, the length return one.
Why does this happen and how to solve this problem.


available_region_code[1] IS NULL?available_region_code[1] IS NULLis Fase, maybe like @jjanes says, there are non-printing characters in the array.available_region_code[1]::bytea. That will show you the bytes stored.