diff options
author | Stephen Frost <sfrost@snowman.net> | 2014-10-17 08:07:46 -0400 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2014-10-17 08:07:46 -0400 |
commit | 389573fd19edd255736c50dfd0fd779da7535a7b (patch) | |
tree | 4e3e5a9e1b7b740073c135ba47c5e4103d6d0d75 /src | |
parent | b2cbced9eef20692b51a84d68d469627f4fc43ac (diff) | |
download | postgresql-389573fd19edd255736c50dfd0fd779da7535a7b.tar.gz postgresql-389573fd19edd255736c50dfd0fd779da7535a7b.zip |
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!)
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index c56a4cba40e..16ebc12e193 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -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"; |