結果 : check if table is empty postgresql