Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/bin/pg_dump/pg_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,18 @@ typedef enum SeqType
SEQTYPE_SMALLINT,
SEQTYPE_INTEGER,
SEQTYPE_BIGINT,
SEQTYPE_CUSTINT,
} SeqType;

static const char *const SeqTypeNames[] =
{
[SEQTYPE_SMALLINT] = "smallint",
[SEQTYPE_INTEGER] = "integer",
[SEQTYPE_BIGINT] = "bigint",
[SEQTYPE_CUSTINT] = "pg_catalog.int8",
};

StaticAssertDecl(lengthof(SeqTypeNames) == (SEQTYPE_BIGINT + 1),
StaticAssertDecl(lengthof(SeqTypeNames) == (SEQTYPE_CUSTINT + 1),
"array length mismatch");

typedef struct
Expand Down Expand Up @@ -7193,7 +7195,7 @@ getTables(Archive *fout, int *numTables)
"d.refobjsubid AS owning_col, "
"tsp.spcname AS reltablespace, ");

if (fout->remoteVersion < 170000)
if (fout->remoteVersion < 180000)
appendPQExpBufferStr(query,
"false AS relhasrowid, ");
else
Expand Down