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

Commit fc8cf3d

Browse files
committed
Fix privileges on pg_statistic_ext.tableoid
The GRANT in system_views allowed SELECT privileges on various columns in the pg_statistic_ext catalog, but tableoid was not included in the list. That made pg_dump fail because it's accessing this column when building the list of extended statistics to dump. Discussion: https://postgr.es/m/8833.1560647898%40sss.pgh.pa.us
1 parent 7f44efa commit fc8cf3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/system_views.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ CREATE VIEW pg_stats_ext WITH (security_barrier) AS
291291
AND (c.relrowsecurity = false OR NOT row_security_active(c.oid));
292292

293293
REVOKE ALL on pg_statistic_ext FROM public;
294-
GRANT SELECT (oid, stxrelid, stxname, stxnamespace, stxowner, stxkeys, stxkind)
294+
GRANT SELECT (tableoid, oid, stxrelid, stxname, stxnamespace, stxowner, stxkeys, stxkind)
295295
ON pg_statistic_ext TO public;
296296

297297
CREATE VIEW pg_publication_tables AS

0 commit comments

Comments
 (0)