Re: Error while copying a large file in pg_rewind
Kuntal Ghosh <kuntalghosh.2007@gmail.com>
From: Kuntal Ghosh <kuntalghosh.2007@gmail.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-07-04T06:25:05Z
Lists: 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
Commits
-
pg_rewind: Fix some problems when copying files >2GB.
- ed367be64b11 9.5.8 landed
- 73fbf3d3d0a5 9.6.4 landed
- a46fe6e8be02 10.0 landed
-
pg_rewind: Fix busted sanity check.
- c54e4a55f468 9.5.8 landed
- 0fe21602e27f 9.6.4 landed
- 063ff9210c54 10.0 landed
-
Code review for 64-bit-large-object patch.
- 26fe56481c0f 9.3.0 cited