pgsql: pg_dump: store unused attribs as NULL instead of '\0'

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_dump: store unused attribs as NULL instead of '\0'
Date: 2019-04-26 16:36:33
Message-ID: E1hK3px-0007zc-1O@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7fcdb5e002145ec95b2bebb4c125751be66c4d1a

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c | 11 +++----
src/bin/pg_dump/pg_backup_archiver.h | 7 +----
src/bin/pg_dump/pg_dump.c | 56 ++++++------------------------------
3 files changed, 16 insertions(+), 58 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-04-26 21:18:15 pgsql: Apply stopgap fix for bug #15672.
Previous Message Peter Eisentraut 2019-04-26 09:52:17 pgsql: doc: Update section on NFS