From: Simon Riggs Date: Tue, 15 Feb 2011 00:08:15 +0000 (+0000) Subject: Add version-sensitive SQL for psql when constraints NOT VALID X-Git-Tag: REL9_1_ALPHA4~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0b8a79c4bea7bfa89245ee03abf994b027da411;p=postgresql Add version-sensitive SQL for psql when constraints NOT VALID Bug report and fix by Andres Freund --- diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c index 884101aab1..735eef786b 100644 --- a/src/bin/psql/describe.c +++ b/src/bin/psql/describe.c @@ -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);