Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CB050B5DBD0 for ; Sat, 2 Jul 2011 23:13:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 37752-07 for ; Sun, 3 Jul 2011 02:13:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 628B8B5DBCC for ; Sat, 2 Jul 2011 23:13:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p632DNtJ025565; Sat, 2 Jul 2011 22:13:23 -0400 (EDT) To: Maxim Boguk cc: Craig Ringer , pgsql-bugs@postgresql.org Subject: Re: BUG #6088: copy to stdout cannot be stopped with kill(pid) or pg_terminate_backend In-reply-to: References: <201107020442.p624gahY078103@wwwmaster.postgresql.org> <4E0EE4FA.2020307@postnewspapers.com.au> Comments: In-reply-to Maxim Boguk message dated "Sun, 03 Jul 2011 11:23:31 +1000" Date: Sat, 02 Jul 2011 22:13:23 -0400 Message-ID: <25564.1309659203@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201107/13 X-Sequence-Number: 30625 Maxim Boguk writes: > However, and here is unusual part: first 135GB of the table is > completely dead/empty space without single live tuple Ouch. > So, (and here going pure theory), while code perform seq scan over > large empty space it is not perform check for interrupts while looping > over completely dead/empty area. Yeah, I think that might well be the case. We could possibly throw a CHECK_FOR_INTERRUPTS into heapgetpage or someplace nearby; but on the other hand, a situation like that is going to be catastrophic for performance in so many ways that I'm not sure worrying about interrupt response latency is worthwhile. regards, tom lane