Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YBue5-00056z-7S for pgsql-general@arkaria.postgresql.org; Fri, 16 Jan 2015 00:20:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YBue4-0000RI-Mx for pgsql-general@arkaria.postgresql.org; Fri, 16 Jan 2015 00:20:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YBue3-0000OQ-4M for pgsql-general@postgresql.org; Fri, 16 Jan 2015 00:20:11 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YBudz-0007kR-8o for pgsql-general@postgresql.org; Fri, 16 Jan 2015 00:20:10 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id t0G0JvH23597 for ; Thu, 15 Jan 2015 16:19:58 -0800 Message-ID: <54B85928.6030401@hogranch.com> Date: Thu, 15 Jan 2015 16:19:52 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: Out of Memory References: <54B84A83.9020003@ymail.com> In-Reply-To: <54B84A83.9020003@ymail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 1/15/2015 3:17 PM, Enrico Bianchi wrote: > When I launch a query (the principal field is JSONb), the database > return this: > > ERROR: out of memory > DETAIL: Failed on request of size 110558. it looks like your query is trying to return 7 million rows, although you didn't do EXPLAIN ANALYZE, so your query plan statistics are all estimates. without knowing your schema and table contents its hard to say more. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general