mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-05 07:07:21 +02: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
46e9019bbc
commit
8f45a58d39
@ -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 New Issue
Block a user