Skip to content

Commit 5bef854

Browse files
committed
Fix the pg_dump for IvorySQL 5.0
1 parent 9d890e9 commit 5bef854

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,18 @@ typedef enum SeqType
118118
SEQTYPE_SMALLINT,
119119
SEQTYPE_INTEGER,
120120
SEQTYPE_BIGINT,
121+
SEQTYPE_CUSTINT,
121122
} SeqType;
122123

123124
static const char *const SeqTypeNames[] =
124125
{
125126
[SEQTYPE_SMALLINT] = "smallint",
126127
[SEQTYPE_INTEGER] = "integer",
127128
[SEQTYPE_BIGINT] = "bigint",
129+
[SEQTYPE_CUSTINT] = "pg_catalog.int8",
128130
};
129131

130-
StaticAssertDecl(lengthof(SeqTypeNames) == (SEQTYPE_BIGINT + 1),
132+
StaticAssertDecl(lengthof(SeqTypeNames) == (SEQTYPE_CUSTINT + 1),
131133
"array length mismatch");
132134

133135
typedef struct
@@ -7193,7 +7195,7 @@ getTables(Archive *fout, int *numTables)
71937195
"d.refobjsubid AS owning_col, "
71947196
"tsp.spcname AS reltablespace, ");
71957197

7196-
if (fout->remoteVersion < 170000)
7198+
if (fout->remoteVersion < 180000)
71977199
appendPQExpBufferStr(query,
71987200
"false AS relhasrowid, ");
71997201
else

0 commit comments

Comments
 (0)