On Thu, May 10, 2018 at 10:50 AM, Heikki Linnakangas <hlinn...@iki.fi> wrote: > I came up with the attached patch, which is similar to Mario's, but it > introduces a new "hook" for this.
I'd rather have the hook be executed whenever ProcessInterrupts() is called, rather than only in the query-cancel case. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company