Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EB5911337C03 for ; Mon, 9 May 2011 23:39:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 62891-01-6 for ; Tue, 10 May 2011 02:39:47 +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 826521337C13 for ; Mon, 9 May 2011 23:38:43 -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 p4A2cg5v000329 for ; Tue, 10 May 2011 02:38:42 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p4A2cgx4000328; Tue, 10 May 2011 02:38:42 GMT (envelope-from www) Date: Tue, 10 May 2011 02:38:42 GMT Message-Id: <201105100238.p4A2cgx4000328@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6018: ctrl +C cause data inconsistent for sync standby From: "lxzou" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201105/59 X-Sequence-Number: 30198 The following bug has been logged online: Bug reference: 6018 Logged by: lxzou Email address: zoulx1982@163.com PostgreSQL version: 9.1beta1 Operating system: Linux Description: ctrl +C cause data inconsistent for sync standby Details: Dear Sir: I am interested in standby function of PG, so i test the new feature about sync standby in PG9.1. I have a question, i install only one primary postgres and no standby server. When i execute an insert statement in primary, this statement was blocked. But when I press Ctrl + C in psql, the statement was commited. In my view, the walsender can't send the xlog to standby server, the statement should be rollback, but not commit; because this will cause the data between primary and standby inconsistent. Thank you for your time. Look forward to your reply.