Alexis Beuraud wrote:
Dear all, What is the correct way to check whether an array is empty?
-- Is my array empty now? IF (myarray isnull) THEN
An empty array isn't null (unknown), it's empty. Try enquiring about it's size: SELECT array_dims('{}'::integer[]) is null; ?column? ---------- t You could use array_lower/upper instead too. -- Richard Huxton Archonet Ltd ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your message can get through to the mailing list cleanly