mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-10 00:47:40 +08:00
Add version-sensitive SQL for psql when constraints NOT VALID
Bug report and fix by Andres Freund
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user