Fix updates with joins on Postgres.