]> granicus.if.org Git - postgresql/commitdiff
pg_dump: Fix typo in query
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 17 Feb 2017 20:06:34 +0000 (15:06 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 17 Feb 2017 20:06:34 +0000 (15:06 -0500)
This could lead to incorrect dumping of language privileges in some
cases, which is probably a rare situation.

src/bin/pg_dump/pg_dump.c

index ea64c77621cc9a1d9dc52f3fe30ed4e31c87770e..2306735a5e21a38949a573358ab1b3cf9ba6bbf4 100644 (file)
@@ -7260,7 +7260,7 @@ getProcLangs(Archive *fout, int *numProcLangs)
                                                  "FROM pg_language l "
                                                  "LEFT JOIN pg_init_privs pip ON "
                                                  "(l.oid = pip.objoid "
-                                                 "AND pip.classoid = 'pg_type'::regclass "
+                                                 "AND pip.classoid = 'pg_language'::regclass "
                                                  "AND pip.objsubid = 0) "
                                                  "WHERE l.lanispl "
                                                  "ORDER BY l.oid",