Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 389573f

Browse files
committed
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!)
1 parent b2cbced commit 389573f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2939,7 +2939,7 @@ dumpRowSecurity(Archive *fout, DumpOptions *dopt, RowSecurityInfo *rsinfo)
29392939
cmd = "SELECT";
29402940
else if (strcmp(rsinfo->rseccmd, "a") == 0)
29412941
cmd = "INSERT";
2942-
else if (strcmp(rsinfo->rseccmd, "u") == 0)
2942+
else if (strcmp(rsinfo->rseccmd, "w") == 0)
29432943
cmd = "UPDATE";
29442944
else if (strcmp(rsinfo->rseccmd, "d") == 0)
29452945
cmd = "DELETE";

0 commit comments

Comments
 (0)