Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VDcKJ-0008SJ-Gz for pgsql-admin@arkaria.postgresql.org; Sun, 25 Aug 2013 15:34:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VDcKI-0005CD-GD for pgsql-admin@arkaria.postgresql.org; Sun, 25 Aug 2013 15:34:02 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VDcKG-0005C4-Ds for pgsql-admin@postgresql.org; Sun, 25 Aug 2013 15:34:00 +0000 Received: from asbnvacz-mailrelay01.megapath.net ([207.145.128.243]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VDcK7-0006Ym-RM for pgsql-admin@postgresql.org; Sun, 25 Aug 2013 15:33:58 +0000 Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.53]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 3F0BA1EE4F9F for ; Sun, 25 Aug 2013 11:33:50 -0400 (EDT) Received: (qmail 32080 invoked from network); 25 Aug 2013 15:33:49 -0000 Received: by simscan 1.4.0 ppid: 22032, pid: 27337, t: 1.1952s scanners: clamav: 0.88.2/m:52/d:13495 spam: 3.0.4 Received: from 205-168-220-137.dia.static.qwest.net (HELO [192.168.4.16]) (sribe@elevated-dev.com@[205.168.220.137]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 25 Aug 2013 15:33:48 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: postgres crashes on insert in 40 different threads From: Scott Ribe In-Reply-To: Date: Sun, 25 Aug 2013 09:33:42 -0600 Cc: Content-Transfer-Encoding: quoted-printable Message-Id: <9A8460E0-A087-4002-8153-A7A295C45E4D@elevated-dev.com> References: To: Dzmitry X-Mailer: Apple Mail (2.1508) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail8.sea5 X-Spam-Level: X-Spam-Status: No, score=0.0 required=8.0 tests=none autolearn=disabled version=3.0.4 X-Pg-Spam-Score: -0.0 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Aug 25, 2013, at 2:04 AM, Dzmitry wrote: > Ok,thank you, it's a good point. Need to review & make fixes with what I > have.=20 Yes, as suggested I would try just reducing first. Where connection pooling could help is if your load across all those rails = apps is not spread out evenly, but varies over time such that there is *no*= single small number of workers that is right for all conditions. Because t= he same comments about no benefit from tons of threads applies to the pg se= rver as well: so 110 connections simultaneously doing work is not likely to= be better than some smaller number... --=20 Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin