Commit f0b8a79c authored by Simon Riggs's avatar Simon Riggs

Add version-sensitive SQL for psql when constraints NOT VALID

Bug report and fix by Andres Freund
parent f1fb4b0e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment