Use the correct type for TableInfo->relreplident.
authorAndres Freund
Wed, 12 Aug 2015 13:52:10 +0000 (15:52 +0200)
committerAndres Freund
Sat, 15 Aug 2015 14:19:26 +0000 (16:19 +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 6fa61a5432de3a9bf56a895d0ca77dc950a89565..ffe1facfd2b6636f22a0870d65bc68aef7f13045 100644 (file)
@@ -236,7 +236,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 */