diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2011-02-15 00:08:15 +0000 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2011-02-15 00:08:15 +0000 |
commit | f0b8a79c4bea7bfa89245ee03abf994b027da411 (patch) | |
tree | e82b75eecb15b35c9bb9794dda066338c5cee724 /src | |
parent | f1fb4b0e63a677cdc86de667c75142b88a4edb65 (diff) | |
download | postgresql-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.c | 2 |
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); |