結果 : postgresql function check if row exists