Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRhkb-0005B4-BC for pgsql-general@arkaria.postgresql.org; Wed, 20 Dec 2017 17:01:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRhka-0004o7-NX for pgsql-general@arkaria.postgresql.org; Wed, 20 Dec 2017 17:01:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eRhka-0004ny-Al for pgsql-general@lists.postgresql.org; Wed, 20 Dec 2017 17:01:48 +0000 Received: from o3.7nf.shared.sendgrid.net ([167.89.100.251]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eRhkT-0005Yx-9k for pgsql-general@lists.postgresql.org; Wed, 20 Dec 2017 17:01:47 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=oss4u.com; h=from:to:cc:subject:in-reply-to:references:mime-version:content-type; s=smtpapi; bh=RnZeKK1hsZotUdzGhW/d7wSXXBM=; b=cJLVoBbzjRKpIr/Oe9 5VuRfbG1SCVZQu7WM8Gr2qBW7WydnCvt08bO6/tWjji+zZqAQcXOoBbQOfPq2spt HAY2/zg5A6tHRFs7rOXKaZHR5Vmer53B3cFAe5AQta3o4XkmTtQMXD2ZdE1RwGoc uZEZ8N7nGBESbpe+8Gj/gXTlg= Received: by filter0026p3iad2.sendgrid.net with SMTP id filter0026p3iad2-2446-5A3A9773-B1 2017-12-20 17:01:39.977193515 +0000 UTC Received: from gw.bunspace.com (c-24-130-43-244.hsd1.ca.comcast.net [24.130.43.244]) by ismtpd0022p1las1.sendgrid.net (SG) with ESMTP id pdgX-8tITVqaIu-Te5waxg for ; Wed, 20 Dec 2017 17:01:39.701 +0000 (UTC) Received: (qmail 13188 invoked by uid 453); 20 Dec 2017 17:01:38 -0000 X-Virus-Checked: by ClamAV 0.99.2 on bunspace.com X-Virus-Found: No Authentication-Results: bunspace.com; auth=pass (login) smtp.auth=uwe Received: from tiburon.bunspace.com (HELO tiburon.localnet) (192.168.1.4) by bunspace.com (qpsmtpd/0.96) with ESMTPSA (ECDHE-RSA-AES256-SHA encrypted); Wed, 20 Dec 2017 09:01:38 -0800 From: Uwe To: "David G. Johnston" Cc: "pgsql-generallists.postgresql.org" , mark Subject: Re: postgresql 9.5 has ocuuered OOM Date: Wed, 20 Dec 2017 17:01:40 +0000 (UTC) Message-ID: <8602969.9kyGVsOKG8@tiburon> User-Agent: KMail/5.1.3 (Linux/4.4.0-104-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: <2fd6f5eb.10a25.160747856ec.Coremail.pgroad@163.com> <7244900.kHztgW4kYm@tiburon> MIME-Version: 1.0 Content-type: multipart/alternative; boundary="----------=_1513789300-31448-138" X-SG-EID: 6TR2v6KcNcEnOw+lAT2uNz00q31R1WNHCqxZtoYvwbmykWxXdfjEwVmQb/7MRkZ8YqCR6E92gjjJxq heXZ4i9bcl4Jo7vffdTfQKffvBbEU3KaP3Jjg5dCup7eD6qbqMfhIgJaOYgINLgi0GvHnuGWeWFB7c V/ggi7/K1v4oxQ0BXH3zHQQCCFL+f3QM1oIrTqsly/0rEfybsSWzhsrQIA== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format... ------------=_1513789300-31448-138 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Wednesday, December 20, 2017 9:59:24 AM PST David G. Johnston wrote: > On Wed, Dec 20, 2017 at 9:44 AM, Uwe wrote: > > IIRC work_mem is a PER CONNECTION setting, >=20 > =E2=80=8BThe docs for this setting clearly state that a single connection= /session > can itself use multiple times this values for a single query. >=20 > https://www.postgresql.org/docs/10/static/runtime-config-resource.html#RU= NTI > ME-CONFIG-RESOURCE-MEMORY >=20 So even worse for the OP. No wonder he runs out of memory.=20 Thanks for the correction. Uwe ------------=_1513789300-31448-138 Content-Type: text/html; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable

On Wednesday, December 20, 2017 9:59:24 AM PST David G. Johnston wrote:<= /p>

On Wed, Dec 20, 2017 at 9:44 AM, Uwe <uwe@oss4u.com> w= rote:

IIRC work_mem is a PER CONNECTION setting,

=E2=80=8BThe docs for this setting clearly state that a single connectio= n/session can itself use multiple times this values for a single query.

https://www.postgresql.org/docs/10/static/runtime-config-resource.html#R= UNTI ME-CONFIG-RESOURCE-MEMORY

So even worse for the OP. No wonder he runs out of memory. Thanks for th= e correction.

Uwe

3D"" ------------=_1513789300-31448-138--