Re: FATAL: terminating connection because protocol synchronization was lost

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Shrikant Bhende <shrikantbhende(dot)net(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: FATAL: terminating connection because protocol synchronization was lost
Date: 2018-10-16 19:30:02
Message-ID: e9704a10-ba31-4975-6485-f84f8069d61b@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/16/18 8:36 AM, Shrikant Bhende wrote:
> Hi Adrian,
>
> Thanks for your reply.
> O/S is centos 6.7 on AWS EC2 ,
> this is happening when system starts copying data for the biggest table,
> so just to reconfirm I have taken a pg_dump with Fp for that single
> table and tried to restore the same into PG cluster which was
> successful, and then again when I tried to restore the complete cluster
> dump taken using pg_dumpall it failed again.

Got to believe it is AWS timing out on retrieving from EBS to the EC2
image. You might want to ask AWS tech support about this.

> Actual table size is around 2GB and toast table size is 288 GB which
> might have around 80 GB of dead rows.

The dead rows won't show up in the dump file. I would take a look at the
single table dump to get an idea of the amount of plain text data you
are working with.

>
> Thanks
>
> On Tue 16 Oct, 2018, 20:23 Adrian Klaver, <adrian(dot)klaver(at)aklaver(dot)com
> <mailto:adrian(dot)klaver(at)aklaver(dot)com>> wrote:
>
> On 10/16/18 7:29 AM, Shrikant Bhende wrote:
> > Hi Adrian,
> >
> > Its a PostgreSQL binary and installer was downloaded from
> enterprisedb site.
> > Binary version : psql (PostgreSQL) 9.6.10
> >
> > Command to restore the dump is :
> > ./psql -p 5434 -d cloud -f <path of the file>
>
> Hmm.
>
> What OS is this?
>
> Does the error always happen in the same place in the restore?
>
> >
> > Thanks
> >
>
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com <mailto:adrian(dot)klaver(at)aklaver(dot)com>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2018-10-16 20:07:04 Re: judging acceptable discrepancy in row count v. estimate
Previous Message Rob Sargent 2018-10-16 19:04:05 Re: judging acceptable discrepancy in row count v. estimate