結果 : postgresql function declare variable from select