]> granicus.if.org Git - postgresql/commit
pg_dump: store unused attribs as NULL instead of '\0'
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 26 Apr 2019 16:03:59 +0000 (12:03 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 26 Apr 2019 16:05:17 +0000 (12:05 -0400)
commit7fcdb5e002145ec95b2bebb4c125751be66c4d1a
tree53bd21389fe0dd1532f62765c469bf4915f20aea
parent60bbf0753e337114d4c7d60dbc5a496b1f464cb5
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
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_dump.c