Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faYTH-00007J-GZ for pgsql-general@arkaria.postgresql.org; Wed, 04 Jul 2018 03:28:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1faYTE-0004Jj-3V for pgsql-general@arkaria.postgresql.org; Wed, 04 Jul 2018 03:28:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faYTD-0004Jc-SC for pgsql-general@lists.postgresql.org; Wed, 04 Jul 2018 03:28:43 +0000 Received: from [2600:3c00::f03c:91ff:fedf:5a5b] (helo=squeakycode.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faYTB-0006KI-94 for pgsql-general@postgresql.org; Wed, 04 Jul 2018 03:28:43 +0000 Received: from rogue.localdomain (unknown [IPv6:2604:2d80:c02c:8776:73fd:68f7:78ac:c6b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: andy) by squeakycode.net (Postfix) with ESMTPSA id 3790C2282F; Tue, 3 Jul 2018 22:28:39 -0500 (CDT) Subject: Re: pg_dump out of memory To: Adrian Klaver , pgsql References: <1aaeedd9-5c96-f1f2-e6e2-5d314b409565@aklaver.com> From: Andy Colson Message-ID: <6aee668e-233f-756f-8502-19c5dba13c28@squeakycode.net> Date: Tue, 3 Jul 2018 22:28:36 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1aaeedd9-5c96-f1f2-e6e2-5d314b409565@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2600:3c00::f03c:91ff:fedf:5a5b (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/03/2018 10:21 PM, Adrian Klaver wrote: > On 07/03/2018 07:43 PM, Andy Colson wrote: >> Hi All, >> >> I moved a physical box to a VM, and set its memory to 1Gig.  Everything >> runs fine except one backup: >> >> >> /pub/backup# pg_dump -Fc -U postgres -f wildfire.backup wildfirep >> >> g_dump: Dumping the contents of table "ofrrds" failed: PQgetResult() failed. >> pg_dump: Error message from server: ERROR:  out of memory >> DETAIL:  Failed on request of size 1073741823. >> pg_dump: The command was: COPY public.ofrrds (id, updateddate, bytes) TO >> stdout; >> >> >> >> I'm not sure how to get this backup to run.  Any hints would be appreciated. > > Maybe: > > 1) Try: >     pg_dump -t ofrrds >    to dump only that table. > It didnt work. I get the same error. Also, I'm running Slackware 14.2, and PG 9.5.11 -Andy