1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-20 15:22:23 +03:00

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!)
This commit is contained in:
Stephen Frost
2014-10-17 08:07:46 -04:00
parent b2cbced9ee
commit 389573fd19

View File

@ -2939,7 +2939,7 @@ dumpRowSecurity(Archive *fout, DumpOptions *dopt, RowSecurityInfo *rsinfo)
cmd = "SELECT"; cmd = "SELECT";
else if (strcmp(rsinfo->rseccmd, "a") == 0) else if (strcmp(rsinfo->rseccmd, "a") == 0)
cmd = "INSERT"; cmd = "INSERT";
else if (strcmp(rsinfo->rseccmd, "u") == 0) else if (strcmp(rsinfo->rseccmd, "w") == 0)
cmd = "UPDATE"; cmd = "UPDATE";
else if (strcmp(rsinfo->rseccmd, "d") == 0) else if (strcmp(rsinfo->rseccmd, "d") == 0)
cmd = "DELETE"; cmd = "DELETE";