結果 : postgresql function if select