Commit 389573fd authored by Stephen Frost's avatar Stephen Frost

Fix pg_dump for UPDATE policies

pg_dump had the wrong character for update and so was failing when
attempts were made to pg_dump databases with UPDATE policies.

Pointed out by Fujii Masao (thanks!)
parent b2cbced9
......@@ -2939,7 +2939,7 @@ dumpRowSecurity(Archive *fout, DumpOptions *dopt, RowSecurityInfo *rsinfo)
cmd = "SELECT";
else if (strcmp(rsinfo->rseccmd, "a") == 0)
cmd = "INSERT";
else if (strcmp(rsinfo->rseccmd, "u") == 0)
else if (strcmp(rsinfo->rseccmd, "w") == 0)
cmd = "UPDATE";
else if (strcmp(rsinfo->rseccmd, "d") == 0)
cmd = "DELETE";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment