projects
/
users
/
hanada
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1fb4b0
)
Add version-sensitive SQL for psql when constraints NOT VALID
author
Simon Riggs
<simon@2ndQuadrant.com>
Tue, 15 Feb 2011 00:08:15 +0000
(
00:08
+0000)
committer
Simon Riggs
<simon@2ndQuadrant.com>
Tue, 15 Feb 2011 00:08:15 +0000
(
00:08
+0000)
Bug report and fix by Andres Freund
src/bin/psql/describe.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/describe.c
b/src/bin/psql/describe.c
index 884101aab187c0ea25f06d55d5dc890613f65e8f..735eef786b4d911b6565248d8197175ef79098b1 100644
(file)
--- 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);