pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sonam Sharma <sonams1209@gmail.com>
To: Rob Sargent <robjsargent@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Restore is failing
Date: Wed, 5 Feb 2020 07:43:34 -0800
Message-ID: <b5326686-f666-9aab-0dff-40a670f374b9@aklaver.com> (raw)
In-Reply-To: <CAM-M3TkYiXRRNohOmCfxZOzQXqQyyQ0K_ecEZH1hSRVy7PnQwg@mail.gmail.com>
References: <CAM-M3T=eJHf6Rp9F1y6Y4G0KH8bPXAoQkUq5zbwVm4iteA9QpA@mail.gmail.com>
	<b60c65d5-c24f-0148-c307-8d7e894bbd9a@gmail.com>
	<CAM-M3TkYiXRRNohOmCfxZOzQXqQyyQ0K_ecEZH1hSRVy7PnQwg@mail.gmail.com>

On 2/5/20 12:47 AM, Sonam Sharma wrote:
> Version is 11.2 .. took schema dump using pg_dump -d -n (schma) / gunzip ..

So the above was a plain text dump that you then piped through 
gunzip(?)? That does not make sense.
> 
> The error I am getting while running restore.

If it is a plain text dump you would need to use psql not pg_restore.

> 
> On Wed, Feb 5, 2020, 2:03 PM Rob Sargent <robjsargent@gmail.com 
> <mailto:robjsargent@gmail.com>> wrote:
> 
> 
> 
>     On 2/5/20 1:24 AM, Sonam Sharma wrote:
>>     I am copying schema data to qa box from prod.its failing and
>>     giving below error :
>>
>>     WARNING: terminating connection because of crash of another server
>>     process
>>
>>     DETAIL: The postmaster has commanded this server process to roll
>>     back the current transaction and exit, because another server
>>     process exited abnormally and possibly corrupted shared memory.
>>
>>     HINT:  In a moment you should be able to reconnect to the database
>>     and repeat your command.
>>
>>     server closed the connection unexpectedly.
>>
>>
>>     Can some one please help. Work_mem is set to 8gb.
>>
>>
>>     Thanks , Sonam
>>
>     What version of postgres?
>     Method of copy?
>     Identify which server process is failing, what's the error there.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (5+ messages)

Message-ID: <b5326686-f666-9aab-0dff-40a670f374b9@aklaver.com>
Permalink:  ../b5326686-f666-9aab-0dff-40a670f374b9@aklaver.com/
Also on:    postgresql.org/message-id/b5326686-f666-9aab-0dff-40a670f374b9@aklaver.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: adrian.klaver@aklaver.com, sonams1209@gmail.com, robjsargent@gmail.com
  Subject: Re: Restore is failing
  In-Reply-To: <b5326686-f666-9aab-0dff-40a670f374b9@aklaver.com>
  References: <CAM-M3T=eJHf6Rp9F1y6Y4G0KH8bPXAoQkUq5zbwVm4iteA9QpA@mail.gmail.com> <b60c65d5-c24f-0148-c307-8d7e894bbd9a@gmail.com> <CAM-M3TkYiXRRNohOmCfxZOzQXqQyyQ0K_ecEZH1hSRVy7PnQwg@mail.gmail.com> <b5326686-f666-9aab-0dff-40a670f374b9@aklaver.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