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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy