pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: drum.lucas@gmail.com <drum.lucas@gmail.com>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Re: pg_dump streaming fails - PostgreSQL 9.2
Date: Thu, 28 Jan 2016 17:30:59 -0800
Message-ID: <56AAC0D3.5020705@commandprompt.com> (raw)
In-Reply-To: <CAE_gQfXaOc1_AyS0bO1Ygg3NszKkFyWDNEfKPDF2wquzyUq=qQ@mail.gmail.com>
References: <CAE_gQfXaOc1_AyS0bO1Ygg3NszKkFyWDNEfKPDF2wquzyUq=qQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 01/28/2016 05:23 PM, drum.lucas@gmail.com wrote:
> Hi there!
>
> I'm running this command: *(Trying to copy a full DB (2TB) from a
> hot-standby server to a master (test) server)*
>
> |ssh postgres@myslaveserver "/usr/pgsql-9.2/bin/pg_dump
> --exclude-table-data='junk.*' -—format=custom
> master_db"|/usr/pgsql-9.2/bin/pg_restore --dbname=master_db_temp
> --exit-on-error —-verbose|
>
> Then, after 3 GB I got this error:
>
> |pg_dump:Dumping the contents
> oftable"invoices"failed:PQgetResult()failed.pg_dump:Error message
> fromserver:ERROR:canceling statement due toconflict withrecovery
> DETAIL:Userwas holding a relation lock fortoo long.pg_dump:The command
> was:COPY dm.invoices
> (invoice_id,format_version,ts_issue,ts_ack,customer_id,code,tag,account_data,customer_data,invoice_data,invoice_items_data)TOstdout;|
>
>     I've tried the pg_dump command even with: "--no-unlogged-table-data"
>     option, but it was unsuccessful
>     (http://www.postgresql.org/message-id/E1TutDO-0001Hb-2v@wrigleys.postgresql.org)
>
>     DB size: 2 TB
>
> How can I solve the problem? What's going on? Thanks
>

Back up everything from the master.

JD



-- 
Command Prompt, Inc.                  http://the.postgres.company/
                      +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (2+ messages)

Message-ID: <56AAC0D3.5020705@commandprompt.com>
Permalink:  ../56AAC0D3.5020705@commandprompt.com/
Also on:    postgresql.org/message-id/56AAC0D3.5020705@commandprompt.com

 · 

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: jd@commandprompt.com, drum.lucas@gmail.com
  Subject: Re: pg_dump streaming fails - PostgreSQL 9.2
  In-Reply-To: <56AAC0D3.5020705@commandprompt.com>
  References: <CAE_gQfXaOc1_AyS0bO1Ygg3NszKkFyWDNEfKPDF2wquzyUq=qQ@mail.gmail.com> <56AAC0D3.5020705@commandprompt.com>

* 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