Re: Warn when parallel restoring a custom dump without data offsets
David Gilman <dgilman@gilslotd.com>
From: David Gilman <dgilman@gilslotd.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: David Gilman <davidgilman1@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@lists.postgresql.org, thomas.munro@gmail.com
Date: 2020-05-25T21:55:26Z
Lists: pgsql-hackers
Attachments
- 0001-Remove-unused-seek-check-in-tar-dump-format.patch (text/x-diff)
The earlier patches weren't applying because I had "git config diff.noprefix true" set globally and that was messing up the git format-patch output. On Mon, May 25, 2020 at 01:54:29PM -0500, David Gilman wrote: > And I misunderstood how bad it was. I thought it was reading little > header structs off the disk but it's actually reading the entire table > (see _skipData). So you're quadratically rereading entire tables and > thrashing your cache. Oops. I changed _skipData to fseeko() instead of fread() when possible to cut down on this thrashing further. -- David Gilman :DG< https://gilslotd.com
Commits
-
Cope with data-offset-less archive files during out-of-order restores.
- 71e8e66f783c 13.0 landed
- f009591d6edd 14.0 landed
- 66232220ee6e 12.4 landed
-
Remove manual tracking of file position in pg_dump/pg_backup_custom.c.
- 447cf2f8e9dc 13.0 landed
- a8d0732ac2b5 14.0 landed
- 39a068ce6675 12.4 landed
-
Improve performance of tuple conversion map generation
- 42f70cd9c3db 12.0 cited
-
Fix pg_restore so parallel restore doesn't fail when the input file doesn't
- b779ea8a9a2d 9.0.0 cited