pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Colson <andy@squeakycode.net>
To: pgsql <pgsql-general@postgresql.org>
Subject: pg_dump out of memory
Date: Tue, 3 Jul 2018 21:43:38 -0500
Message-ID: <b87bd5fc-c78f-f225-ffcf-8029a1d55af3@squeakycode.net> (raw)

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






view thread (7+ messages)  latest in thread

Message-ID: <b87bd5fc-c78f-f225-ffcf-8029a1d55af3@squeakycode.net>
Permalink:  ../b87bd5fc-c78f-f225-ffcf-8029a1d55af3@squeakycode.net/
Also on:    postgresql.org/message-id/b87bd5fc-c78f-f225-ffcf-8029a1d55af3@squeakycode.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andy@squeakycode.net
  Subject: Re: pg_dump out of memory
  In-Reply-To: <b87bd5fc-c78f-f225-ffcf-8029a1d55af3@squeakycode.net>
  References: <b87bd5fc-c78f-f225-ffcf-8029a1d55af3@squeakycode.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox