|From:||Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>|
|To:||Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com>|
|Subject:||Re: table_privileges view under information_schema doesn't show privileges on materialized views|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com> writes:
> Currently, table_privileges view in information_schema.sql doesn't
> show privileges on materialized views for currently enabled roles. As
> per the documentation-, it should be showing the all privileges
> granted on tables and views (the documentation doesn't says it has to
> be normal view). Shouldn't we allow it to show privileges on
> materialized views as well.
The spec is quite clear that rows in table_privileges must correspond
to rows in information_schema.tables, but we don't show materialized
Perhaps there's a case for showing MVs in the "tables" view, and thence
also in table_privileges, but this patch by itself is flat wrong.
Anyway it seems to me we made that decision already; it's a bit late now
to be revisiting whether MVs should be treated as tables here.
regards, tom lane
|Next Message||Konstantin Knizhnik||2018-08-24 15:36:52||Re: [HACKERS] Cached plans and statement generalization|
|Previous Message||Peter Eisentraut||2018-08-24 15:18:15||Re: remove ATTRIBUTE_FIXED_PART_SIZE|