pg_dump: store unused attribs as NULL instead of '\0'
Alvaro Herrera <alvherre@alvh.no-ip.org>
pg_dump: store unused attribs as NULL instead of '\0' Commit f831d4accda0 changed pg_dump to emit (and pg_restore to understand) NULLs for unused members in ArchiveEntry structs, as a side effect of some code beautification. That broke pg_restore of dumps generated with older pg_dump, however, so it was reverted in 19455c9f5606. Since the archiver version number has been bumped in 3b925e905de3, we can put it back. Author: Dmitry Dolgov Discussion: https://postgr.es/m/CA+q6zcXx0XHqLsFJLaUU2j5BDiBAHig=YRoBC_YVq7VJGvzBEA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/pg_backup_archiver.c | modified | +6 −5 |
| src/bin/pg_dump/pg_backup_archiver.h | modified | +1 −6 |
| src/bin/pg_dump/pg_dump.c | modified | +9 −47 |
Discussion
- Segfault when restoring -Fd dump on current HEAD 31 messages · 2019-02-25 → 2019-04-26