From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maxim Boguk <maxim.boguk@gmail.com>
Cc: Craig Ringer <craig@postnewspapers.com.au>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6088: copy to stdout cannot be stopped with kill(pid) or pg_terminate_backend
Date: Sat, 02 Jul 2011 22:13:23 -0400
Message-ID: <25564.1309659203@sss.pgh.pa.us> (raw)
In-Reply-To: <CAK-MWwQnisEFMu4935wDO0kWD0pZKyuL7h1rO6hUy6K+BPSR_Q@mail.gmail.com>
References: <201107020442.p624gahY078103@wwwmaster.postgresql.org>
<4E0EE4FA.2020307@postnewspapers.com.au>
<CAK-MWwTnzMm+Azk8ix3-WUMWG6qRiL0KR=U_is9HdM=x_Gpm7g@mail.gmail.com>
<CAK-MWwQnisEFMu4935wDO0kWD0pZKyuL7h1rO6hUy6K+BPSR_Q@mail.gmail.com>
Maxim Boguk <maxim.boguk@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, maxim.boguk@gmail.com, craig@postnewspapers.com.au
Subject: Re: BUG #6088: copy to stdout cannot be stopped with kill(pid) or pg_terminate_backend
In-Reply-To: <25564.1309659203@sss.pgh.pa.us>
References: <201107020442.p624gahY078103@wwwmaster.postgresql.org> <4E0EE4FA.2020307@postnewspapers.com.au> <CAK-MWwTnzMm+Azk8ix3-WUMWG6qRiL0KR=U_is9HdM=x_Gpm7g@mail.gmail.com> <CAK-MWwQnisEFMu4935wDO0kWD0pZKyuL7h1rO6hUy6K+BPSR_Q@mail.gmail.com> <25564.1309659203@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox