Re: AtEOXact_ApplyLauncher() and subtransactions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: AtEOXact_ApplyLauncher() and subtransactions
Date
Msg-id 20180614162854.egmj6k3ks2jlez45@alvherre.pgsql
Whole thread Raw
In response to AtEOXact_ApplyLauncher() and subtransactions  (Amit Khandekar <amitdkhan.pg@gmail.com>)
List pgsql-hackers
On 2018-Jun-05, Amit Khandekar wrote:

> When a SUBSCRIPTION is altered, then the currently running
> table-synchronization workers that are no longer needed for the
> altered subscription, are terminated. This is done by the function
> AtEOXact_ApplyLauncher() inside CommitTransaction(). So during each
> ALTER-SUBSCRIPTION command, the on_commit_stop_workers list is
> appended with new set of workers to be stopped. And then at commit,
> AtEOXact_ApplyLauncher() stops the workers in the list.
> 
> But there is no handling for sub-transaction abort.

Peter, any comments here?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: server crashed with TRAP: FailedAssertion("!(!parallel_aware || pathnode->path.parallel_safe)"
Next
From: Tom Lane
Date:
Subject: Re: server crashed with TRAP: FailedAssertion("!(!parallel_aware || pathnode->path.parallel_safe)"