postgres.git / summary / log / commit / refs
commit f0b8a79c4bea7bfa89245ee03abf994b027da411
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: Tue Feb 15 00:08:15 2011 +0000
Add version-sensitive SQL for psql when constraints NOT VALID
Bug report and fix by Andres Freund
src/bin/psql/describe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
[parent: f1fb4b0e63a6]