aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2011-02-15 00:08:15 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2011-02-15 00:08:15 +0000
commitf0b8a79c4bea7bfa89245ee03abf994b027da411 (patch)
treee82b75eecb15b35c9bb9794dda066338c5cee724 /src
parentf1fb4b0e63a677cdc86de667c75142b88a4edb65 (diff)
downloadpostgresql-f0b8a79c4bea7bfa89245ee03abf994b027da411.tar.gz
postgresql-f0b8a79c4bea7bfa89245ee03abf994b027da411.zip
Add version-sensitive SQL for psql when constraints NOT VALID
Bug report and fix by Andres Freund
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/describe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index 884101aab18..735eef786b4 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);