insert into table using select statement in postgresqlの検索結果