migrations: Fix do_batch_update for postgres 10.
migrations: Fix do_batch_update for postgres 10.

Apparently, our do_batch_update method (used, e.g., in a pgroonga
migration) was using semi-invalid syntax that was removed in postgres
10.

Thanks to Ilya Evseev for the report.

Fixes #11063.

eeshangarg/zulip,shubhamdhama/zulip,rishig/zulip,hackerkid/zulip,zulip/zulip,punchagan/zulip,dhcrzf/zulip,kou/zulip,tommyip/zulip,punchagan/zulip,kou/zulip,rishig/zulip,timabbott/zulip,dhcrzf/zulip,brainwane/zulip,zulip/zulip,hackerkid/zulip,rishig/zulip,brainwane/zulip,shubhamdhama/zulip,showell/zulip,punchagan/zulip,synicalsyntax/zulip,punchagan/zulip,rht/zulip,timabbott/zulip,tommyip/zulip,tommyip/zulip,andersk/zulip,rishig/zulip,synicalsyntax/zulip,timabbott/zulip,dhcrzf/zulip,andersk/zulip,kou/zulip,zulip/zulip,tommyip/zulip,andersk/zulip,hackerkid/zulip,dhcrzf/zulip,timabbott/zulip,timabbott/zulip,showell/zulip,showell/zulip,shubhamdhama/zulip,eeshangarg/zulip,tommyip/zulip,punchagan/zulip,hackerkid/zulip,punchagan/zulip,brainwane/zulip,shubhamdhama/zulip,andersk/zulip,showell/zulip,tommyip/zulip,showell/zulip,zulip/zulip,zulip/zulip,showell/zulip,rishig/zulip,synicalsyntax/zulip,timabbott/zulip,shubhamdhama/zulip,rht/zulip,punchagan/zulip,eeshangarg/zulip,timabbott/zulip,kou/zulip,synicalsyntax/zulip,rishig/zulip,andersk/zulip,kou/zulip,showell/zulip,synicalsyntax/zulip,tommyip/zulip,rht/zulip,shubhamdhama/zulip,dhcrzf/zulip,rht/zulip,synicalsyntax/zulip,kou/zulip,kou/zulip,zulip/zulip,brainwane/zulip,hackerkid/zulip,eeshangarg/zulip,brainwane/zulip,eeshangarg/zulip,rht/zulip,brainwane/zulip,rishig/zulip,shubhamdhama/zulip,hackerkid/zulip,rht/zulip,dhcrzf/zulip,eeshangarg/zulip,synicalsyntax/zulip,rht/zulip,andersk/zulip,brainwane/zulip,hackerkid/zulip,andersk/zulip,dhcrzf/zulip,eeshangarg/zulip,zulip/zulip