On Thu, Oct 4, 2012 at 1:10 PM, Jeff Janes <jeff(dot)janes(at)gmail(dot)com> wrote:
> The bulk update could take an Exclusive (not Access Exclusive) lock.
> Or the delete could perhaps be arranged to delete the records in ctid
> order (although that might still deadlock). Or you could just repeat
> the failed transaction.
How do you make pg update/delete records, in bulk, in some particular order?
(ie, without issuing separate queries for each record)