Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3cc844

Browse files
committed
Fix psql \d output of policies.
psql neglected to wrap parenthesis around USING and WITH CHECKexpressions -- fixed. Back-patched to 9.5 where RLS policies wereintroduced.
1 parentdd85acf commitc3cc844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,11 +2083,11 @@ describeOneTableDetails(const char *schemaname,
20832083
}
20842084

20852085
if (!PQgetisnull(result,i,2))
2086-
appendPQExpBuffer(&buf,"\n USING%s",
2086+
appendPQExpBuffer(&buf,"\n USING(%s)",
20872087
PQgetvalue(result,i,2));
20882088

20892089
if (!PQgetisnull(result,i,3))
2090-
appendPQExpBuffer(&buf,"\n WITH CHECK%s",
2090+
appendPQExpBuffer(&buf,"\n WITH CHECK(%s)",
20912091
PQgetvalue(result,i,3));
20922092

20932093
printTableAddFooter(&cont,buf.data);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp