Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7BDF1B5DBF7 for ; Sat, 2 Jul 2011 01:42:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 52235-09 for ; Sat, 2 Jul 2011 04:42:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id D850AB5DBF6 for ; Sat, 2 Jul 2011 01:42:37 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p624gafE078104 for ; Sat, 2 Jul 2011 04:42:36 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p624gahY078103; Sat, 2 Jul 2011 04:42:36 GMT (envelope-from www) Date: Sat, 2 Jul 2011 04:42:36 GMT Message-Id: <201107020442.p624gahY078103@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6088: copy to stdout cannot be stopped with kill(pid) or pg_terminate_backend From: "Maksym Boguk" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201107/6 X-Sequence-Number: 30618 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.