Re: Error while copying a large file in pg_rewind
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>, Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-07-03T18:50:16Z
Lists: pgsql-hackers
On 7/3/17 09:53, Tom Lane wrote: > Hm. Before we add a bunch of code to deal with that, are we sure we > *want* it to copy such files? Seems like that's expending a lot of > data-transfer work for zero added value --- consider e.g. a server > with a bunch of old core files laying about in $PGDATA. Given that > it's already excluded all database-data-containing files, maybe we > should just set a cap on the plausible size of auxiliary files. It seems kind of lame to fail on large files these days, even if they are not often useful in the particular case. Also, most of the segment and file sizes are configurable, and we have had reports of people venturing into much larger file sizes. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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