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 1faXlo-0006Aq-3M for pgsql-general@arkaria.postgresql.org; Wed, 04 Jul 2018 02:43:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1faXlm-00043j-2R for pgsql-general@arkaria.postgresql.org; Wed, 04 Jul 2018 02:43:50 +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.89) (envelope-from ) id 1faXll-00043U-NL for pgsql-general@lists.postgresql.org; Wed, 04 Jul 2018 02:43:49 +0000 Received: from squeakycode.net ([96.126.114.205]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faXle-0001co-Rk for pgsql-general@postgresql.org; Wed, 04 Jul 2018 02:43:48 +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 D63182282F for ; Tue, 3 Jul 2018 21:43:41 -0500 (CDT) From: Andy Colson Subject: pg_dump out of memory To: pgsql Message-ID: Date: Tue, 3 Jul 2018 21:43:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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've been reducing my memory settings: maintenance_work_mem = 80MB work_mem = 5MB shared_buffers = 200MB But it doesnt seem to make a difference. The tables looks like: wildfire=# \dt+ ofrrds List of relations Schema | Name | Type | Owner | Size | Description --------+--------+-------+-------+-------+------------- public | ofrrds | table | andy | 15 MB | ildfire=# \d ofrrds Table "public.ofrrds" Column | Type | Modifiers -------------+------------------------+----------- id | character varying(100) | not null updateddate | bigint | not null bytes | bytea | Indexes: "ofrrds_pk" PRIMARY KEY, btree (id) wildfire=# select id, length(bytes) from ofrrds; id | length -------------------+----------- muc_rooms | 152330241 packet_count | 76165121 muc_users | 76165121 sessions | 76165121 muc_occupants | 9520641 muc_traffic | server_bytes | 301850625 proxyTransferRate | 76165121 server_sessions | 152330241 conversations | 304660481 (10 rows) I'm not sure how to get this backup to run. Any hints would be appreciated. -Andy