Add version-sensitive SQL for psql when constraints NOT VALID

Bug report and fix by Andres Freund
This commit is contained in:
Simon Riggs 2011-02-15 00:08:15 +00:00
parent f1fb4b0e63
commit f0b8a79c4b
1 changed files with 1 additions and 1 deletions

View File

@ -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);