以下の構文エラーで私を助けることができます構文エラー - postgresql
カラム参照 "id"はあいまいです。
insert into table1 (id, name, type, version)
select id, '<needs updating>' as name, 'external' as type, -1 as version
from table2
left outer join table1
on table2.id = table1.id
where table1.id is null
group by table2.id, table1.name
order by table2.id, table1.name
エラーメッセージについては何が不明ですか? –