結果 : postgresql select ids into array