Re: [HACKERS] Error while copying a large file in pg_rewind - Mailing list pgsql-hackers

From Kuntal Ghosh
Subject Re: [HACKERS] Error while copying a large file in pg_rewind
Date
Msg-id CAGz5QCJCXwNtnoa=a6DSSNNPAs1j4shN6YcwdP0Uu8anJK1yhg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Error while copying a large file in pg_rewind  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [HACKERS] Error while copying a large file in pg_rewind
List pgsql-hackers
On Mon, Jul 3, 2017 at 6:50 PM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> pg_basebackup/ with fe_recvint64() has its own way to do things, as
> does the large object things in libpq. I would think that at least on
> HEAD things could be gathered with a small set of routines. It is
> annoying to have a third copy of the same thing. OK that's not
> invasive but src/common/ would be a nice place to put things.
>
> -        if (PQgetlength(res, 0, 1) != sizeof(int32))
> +        if (PQgetlength(res, 0, 1) != sizeof(long long int))
> This had better be int64.

Thank you. I'll do the changes and submit the revised patch. I've
added an entry in commitfest for the same.



-- 
Thanks & Regards,
Kuntal Ghosh
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Kuntal Ghosh
Date:
Subject: Re: [HACKERS] Error while copying a large file in pg_rewind
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] Error while copying a large file in pg_rewind