Re: Autonomous Transaction is back - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Autonomous Transaction is back
Date
Msg-id CAHyXU0zK2XRimLW15ESU7fozpctvOFB-jB7++B1jhVWGxgCWkQ@mail.gmail.com
Whole thread Raw
In response to Re: Autonomous Transaction is back  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Autonomous Transaction is back
List pgsql-hackers
On Thu, Jul 23, 2015 at 1:49 PM, Josh Berkus <josh@agliodbs.com> wrote:
> Batch Jobs: large data-manipulation tasks which need to be broken up
> into segments, with each segment committing separately.  Example:
> updating 1 million records in batches of 1000.

Autonomous transactions are not a good fit for this case; stored
procedures are a better way to go for any scenario where you don't
want be be in a snapshot (for example, suppose you want to change
isolation level on the fly).

merlin



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: RFC: replace pg_stat_activity.waiting with something more descriptive
Next
From: Joe Conway
Date:
Subject: Re: RLS fails to work with UPDATE ... WHERE CURRENT OF