Add version-sensitive SQL for psql when constraints NOT VALID
Bug report and fix by Andres Freund
This commit is contained in:
parent
f1fb4b0e63
commit
f0b8a79c4b
|
@ -1754,7 +1754,7 @@ describeOneTableDetails(const char *schemaname,
|
|||
PQgetvalue(result, i, 0),
|
||||
PQgetvalue(result, i, 1));
|
||||
|
||||
if (strcmp(PQgetvalue(result, i, 2), "f") == 0)
|
||||
if (pset.sversion >= 90100 && strcmp(PQgetvalue(result, i, 2), "f") == 0)
|
||||
appendPQExpBuffer(&buf, " NOT VALID");
|
||||
|
||||
printTableAddFooter(&cont, buf.data);
|
||||
|
|
Loading…
Reference in New Issue