結果 : postgresql function case statement