Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBbxM-0006iS-1P for pgsql-performance@arkaria.postgresql.org; Tue, 20 Aug 2013 02:46:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VBbxL-0001YZ-Gs for pgsql-performance@arkaria.postgresql.org; Tue, 20 Aug 2013 02:46:03 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBbxK-0001YS-7U for pgsql-performance@postgresql.org; Tue, 20 Aug 2013 02:46:02 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VBbwj-0004bS-1t for pgsql-performance@postgresql.org; Tue, 20 Aug 2013 02:46:01 +0000 Received: by mail-pa0-f43.google.com with SMTP id hz10so146456pad.16 for ; Mon, 19 Aug 2013 19:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=SLqqDBAZmz09U6QL7sdz61XXLljR4HIDYuuyr71nXtg=; b=QX0s1CY0XssNM9ofuDsKngOYOnw07bQsX1rjNHJxE/JqT051ir+IaGuBZPcwSnnuyz EZWDZn0uUtQ8s9PqEJi3KAA1TD/iSOjHXeGn+PUJph4eWg7qJbWjHHb0ZEBd893VBXuL kZvrz122ZFX1wnjpu8vk/1XD4aZUIwNKr2uskFgemgDQGdqgNSgw6n4TM+uOv+TvM0Cj 2Yp7osuWbSz7zIb/8kPm69XfXFK0i9BPCOFc60EYYbZcE6zCFsoNAQShU078h5+Tn9GW 7nPJa/yGMdrP9qSzD/JRACIO1OwUppkpC4OcBHN3dHn+vqll3eCK4GkDczwNEw2DpiNE IIig== X-Received: by 10.68.221.233 with SMTP id qh9mr16462749pbc.103.1376966723338; Mon, 19 Aug 2013 19:45:23 -0700 (PDT) Received: from [192.168.1.6] ([116.226.80.181]) by mx.google.com with ESMTPSA id mr3sm18106539pbb.27.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 Aug 2013 19:45:22 -0700 (PDT) Message-ID: <5212D83E.4080709@gmail.com> Date: Tue, 20 Aug 2013 10:45:18 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Sergey Konoplev CC: "pgsql-performance@postgresql.org" Subject: Re: How to investiage slow insert problem References: <5212CA07.6020509@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: 0.7 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org 于 2013/8/20 10:38, Sergey Konoplev 写道: > On Mon, Aug 19, 2013 at 6:44 PM, Rural Hunter wrote: > What do you mean by recycling pgbouncer? I mean restarting pgbouncer. > Haven't you noticed what was in the state column of the > pg_state_activity view? In 9.2 the query column in this view shows the > last statement that was executed in this connection, and it does not > mean that this statement is working at the moment of monitoring. If > the state is active, than it was working, however, my assumption is > that it was IDLE in transaction. No, they are alll with 'active' state. > You mentioned the "incomplete message from client" error, so it might > somehow be a network problem that led to a hunging connection to > pgbouncer, that made pgbouncer kept a connection to postgres after > transaction was started. pgbouncer and the db server are in the same local network and there shouldn't be any network problem between them. I also ran ping from pgbouncer server to the db server and there was no problem. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance