mirror of
https://github.com/postgres/postgres.git
synced 2026-07-15 12:51:05 -04:00
Fix psql \d output of policies.
psql neglected to wrap parenthesis around USING and WITH CHECK expressions -- fixed. Back-patched to 9.5 where RLS policies were introduced.
This commit is contained in:
parent
dd85acf0c4
commit
c3cc844feb
1 changed files with 2 additions and 2 deletions
|
|
@ -2083,11 +2083,11 @@ describeOneTableDetails(const char *schemaname,
|
|||
}
|
||||
|
||||
if (!PQgetisnull(result, i, 2))
|
||||
appendPQExpBuffer(&buf, "\n USING %s",
|
||||
appendPQExpBuffer(&buf, "\n USING (%s)",
|
||||
PQgetvalue(result, i, 2));
|
||||
|
||||
if (!PQgetisnull(result, i, 3))
|
||||
appendPQExpBuffer(&buf, "\n WITH CHECK %s",
|
||||
appendPQExpBuffer(&buf, "\n WITH CHECK (%s)",
|
||||
PQgetvalue(result, i, 3));
|
||||
|
||||
printTableAddFooter(&cont, buf.data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue