Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aOxwE-0001aS-7V for pgsql-general@arkaria.postgresql.org; Fri, 29 Jan 2016 01:33:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aOxwD-00007u-2Z for pgsql-general@arkaria.postgresql.org; Fri, 29 Jan 2016 01:33:25 +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.84) (envelope-from ) id 1aOxtx-00061T-Ph for pgsql-general@postgresql.org; Fri, 29 Jan 2016 01:31:05 +0000 Received: from www.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aOxtu-0004Q7-5B for pgsql-general@postgresql.org; Fri, 29 Jan 2016 01:31:04 +0000 Received: from [192.168.1.5] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 05C36359; Thu, 28 Jan 2016 17:30:59 -0800 (PST) Received: from c-67-168-169-165.hsd1.wa.comcast.net ([67.168.169.165] helo=[192.168.1.5]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.4.5); 28 Jan 2016 17:30:59 -0800 Subject: Re: pg_dump streaming fails - PostgreSQL 9.2 To: "drum.lucas@gmail.com" , Postgres General References: From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <56AAC0D3.5020705@commandprompt.com> Date: Thu, 28 Jan 2016 17:30:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Assp-Version: 2.4.5(15162) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-31059-05645 X-Assp-Session: 7F563A576338 (mail 1) X-Assp-Envelope-From: jd@commandprompt.com X-Assp-Intended-For: pgsql-general@postgresql.org X-Assp-Intended-For: drum.lucas@gmail.com X-Assp-Original-Subject: Re: [GENERAL] pg_dump streaming fails - PostgreSQL 9.2 X-Assp-Client-SSL: yes 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 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