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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy