mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03: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, 0),
|
||||||
PQgetvalue(result, i, 1));
|
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");
|
appendPQExpBuffer(&buf, " NOT VALID");
|
||||||
|
|
||||||
printTableAddFooter(&cont, buf.data);
|
printTableAddFooter(&cont, buf.data);
|
||||||
|
Reference in New Issue
Block a user