pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maksym Boguk <Maxim.Boguk@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6088: copy to stdout cannot be stopped with kill(pid) or pg_terminate_backend
Date: Sat, 2 Jul 2011 04:42:36 GMT
Message-ID: <201107020442.p624gahY078103@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6088
Logged by:          Maksym Boguk
Email address:      Maxim.Boguk@gmail.com
PostgreSQL version: 8.4.7
Operating system:   Freebsd
Description:        copy to stdout cannot be stopped with kill(pid) or
pg_terminate_backend
Details: 

Again I not sure it is actual bug or intended behaviour.

But I found I can not stop 
COPY bill.changes (id, cdate, mdate, status, table_name, pk_id, old_row,
new_row) TO stdout;
with pg_terminate_backend(procpid) or kill (procpid).

At the same time copy to stdout completely ignore fact other side (pg_dump
itself) was killed long time ago.

That is can be problem because backup of some huge table can be very long
process and prevent any DDL changes for all tables in the that database
(because pg_dump keep lock on all tables).

Now I'm sitting with open ssh and waiting 2 hour while that 120Gb table
finally finish copying and I can perform some urgent DDL on the database.



view thread (6+ messages)  latest in thread

Message-ID: <201107020442.p624gahY078103@wwwmaster.postgresql.org>
Permalink:  ../201107020442.p624gahY078103@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201107020442.p624gahY078103@wwwmaster.postgresql.org

 · 

reply

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: Maxim.Boguk@gmail.com
  Subject: Re: BUG #6088: copy to stdout cannot be stopped with kill(pid) or pg_terminate_backend
  In-Reply-To: <201107020442.p624gahY078103@wwwmaster.postgresql.org>
  References: <201107020442.p624gahY078103@wwwmaster.postgresql.org>

* 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