Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f0b8a79

Browse files
Add version-sensitive SQL for psql when constraints NOT VALID
Bug report and fix by Andres Freund
1 parent f1fb4b0 commit f0b8a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/describe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,7 @@ describeOneTableDetails(const char *schemaname,
17541754
PQgetvalue(result, i, 0),
17551755
PQgetvalue(result, i, 1));
17561756

1757-
if (strcmp(PQgetvalue(result, i, 2), "f") == 0)
1757+
if (pset.sversion >= 90100 && strcmp(PQgetvalue(result, i, 2), "f") == 0)
17581758
appendPQExpBuffer(&buf, " NOT VALID");
17591759

17601760
printTableAddFooter(&cont, buf.data);

0 commit comments

Comments
 (0)