Use the correct type for TableInfo->relreplident.
authorAndres Freund <[email protected]>
Wed, 12 Aug 2015 13:52:10 +0000 (15:52 +0200)
committerAndres Freund <[email protected]>
Sat, 15 Aug 2015 14:18:44 +0000 (16:18 +0200)
Mistakenly relreplident was stored as a bool. That works today as c.h
typedefs bool to a char, but isn't very future proof.

Discussion: 20150812084351[email protected]
Backpatch: 9.4 where replica identity was introduced.

src/bin/pg_dump/pg_dump.h

index da7597ded1c177b755b36d08057056734fb5835c..b40b816bee02fd2b8a1628add4f7a252ab4da965 100644 (file)
@@ -202,7 +202,7 @@ typedef struct _tableInfo
        char            relkind;
        char            relpersistence; /* relation persistence */
        bool            relispopulated; /* relation is populated */
-       bool            relreplident;   /* replica identifier */
+       char            relreplident;   /* replica identifier */
        char       *reltablespace;      /* relation tablespace */
        char       *reloptions;         /* options specified by WITH (...) */
        char       *checkoption;        /* WITH CHECK OPTION */