mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Fix pg_dump output of policies.
pg_dump neglected to wrap parenthesis around USING and WITH CHECK expressions -- fixed. Reported by Noah Misch.
This commit is contained in:
parent
3d5cb31c9a
commit
e0d4a290f4
1 changed files with 2 additions and 2 deletions
|
|
@ -3012,10 +3012,10 @@ dumpPolicy(Archive *fout, DumpOptions *dopt, PolicyInfo *polinfo)
|
|||
appendPQExpBuffer(query, " TO %s", polinfo->polroles);
|
||||
|
||||
if (polinfo->polqual != NULL)
|
||||
appendPQExpBuffer(query, " USING %s", polinfo->polqual);
|
||||
appendPQExpBuffer(query, " USING (%s)", polinfo->polqual);
|
||||
|
||||
if (polinfo->polwithcheck != NULL)
|
||||
appendPQExpBuffer(query, " WITH CHECK %s", polinfo->polwithcheck);
|
||||
appendPQExpBuffer(query, " WITH CHECK (%s)", polinfo->polwithcheck);
|
||||
|
||||
appendPQExpBuffer(query, ";\n");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue