Simon Riggs <si...@2ndquadrant.com> writes: > On Fri, 2010-03-26 at 18:59 +0000, Greg Stark wrote: >> It occurs to me we could do the same for CHECK_FOR_INTERRUPTS() by >> conditionally having it call a function which calls gettimeofday and >> compares with the previous timestamp received at the last CFI().
> Reducing latency sounds good, but what has CFI got to do with that? It took me about five minutes to figure out what Greg was on about too. His point is that we need to locate code paths in which an extremely long time can pass between successive CFI calls, because that means the backend will fail to respond to SIGINT/SIGTERM for a long time. Instrumenting CFI itself is a possible tool for that. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers