Alexis Beuraud wrote: > What is the correct way to check whether an array is empty? > > Here is what I do, in pseudo-code: > > -- Is my array empty now? > IF (myarray isnull) THEN Try this: IF array_lower(myarray, 1) IS NULL THEN ... END IF Yours, Laurenz Albe ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster