結果 : postgresql function set variable from select