• Peter Eisentraut's avatar
    pg_dump: Fix dumping of WITH OIDS tables · 6178f3cb
    Peter Eisentraut authored
    A table with OIDs that was the first in the dump output would not get
    dumped with OIDs enabled.  Fix that.
    
    The reason was that the currWithOids flag was declared to be bool but
    actually also takes a -1 value for "don't know yet".  But under
    stdbool.h semantics, that is coerced to true, so the required SET
    default_with_oids command is not output again.  Change the variable
    type to char to fix that.
    Reported-by: default avatarDerek Nelson <derek@pipelinedb.com>
    6178f3cb
pg_backup_archiver.h 17.1 KB