diff --git a/src/postgres/src/bin/pg_dump/pg_dump.c b/src/postgres/src/bin/pg_dump/pg_dump.c index 0a38b9edbacb..2c8a8b09d0dd 100644 --- a/src/postgres/src/bin/pg_dump/pg_dump.c +++ b/src/postgres/src/bin/pg_dump/pg_dump.c @@ -16917,7 +16917,7 @@ dumpConstraint(Archive *fout, const ConstraintInfo *coninfo) } else { - appendPQExpBuffer(q, "%s", + appendPQExpBuffer(q, "%s ", coninfo->contype == 'p' ? "PRIMARY KEY" : "UNIQUE"); /* * If a table has an unique constraint with index definition,