pg_dump: Fix harmless type mixup
authorPeter Eisentraut <[email protected]>
Tue, 13 Jun 2017 03:06:38 +0000 (23:06 -0400)
committerPeter Eisentraut <[email protected]>
Tue, 13 Jun 2017 03:06:38 +0000 (23:06 -0400)
src/bin/pg_dump/pg_dump.c

index 9941111cda06444b7f6207d0357b417d8be893b8..0b1574d401ff6e9b49482ab175fbd97df4ba1403 100644 (file)
@@ -7953,7 +7953,7 @@ getTableAttrs(Archive *fout, TableInfo *tblinfo, int numTables)
        tbinfo->attstattarget = (int *) pg_malloc(ntups * sizeof(int));
        tbinfo->attstorage = (char *) pg_malloc(ntups * sizeof(char));
        tbinfo->typstorage = (char *) pg_malloc(ntups * sizeof(char));
-       tbinfo->attidentity = (char *) pg_malloc(ntups * sizeof(bool));
+       tbinfo->attidentity = (char *) pg_malloc(ntups * sizeof(char));
        tbinfo->attisdropped = (bool *) pg_malloc(ntups * sizeof(bool));
        tbinfo->attlen = (int *) pg_malloc(ntups * sizeof(int));
        tbinfo->attalign = (char *) pg_malloc(ntups * sizeof(char));