結果 : postgres function set variable from select