Hello
since BOOL expression has three possible values: TRUE,FALSE,NULLplpgsql IF control structure should have three alternate blocks: THEN,ELSE,NULL
shouldn't it ?