From: Tom Lane <tgl@sss.pgh.pa.us>
To: Henrik Uggla <Henrik.Uggla@kristianstad.se>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Refreshing materialized views
Date: Tue, 28 Nov 2017 09:25:47 -0500
Message-ID: <13279.1511879147@sss.pgh.pa.us> (raw)
In-Reply-To: <9240031180ff4c419251652f39908dd0@kristianstad.se>
References: <9240031180ff4c419251652f39908dd0@kristianstad.se>
Henrik Uggla <Henrik.Uggla@kristianstad.se> writes:
> I created some materialized views and set a group as owner. My problem is that I can't refresh the views. I get "permission denied" even when using the postgres super user. If I change the owner to an ordinary user I still can't refresh the view as the owner or postgres. Only if I change owner to postgres am I able to refresh the view, but only as the postgres user. I've mainly tried with Pgadmin4 but also a few times with psql, and the database is installed as a docker container. Please help.
Apparently, the view owner lacks select permission on some underlying
table. Pay attention to what is being denied access to.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, Henrik.Uggla@kristianstad.se
Subject: Re: Refreshing materialized views
In-Reply-To: <13279.1511879147@sss.pgh.pa.us>
References: <9240031180ff4c419251652f39908dd0@kristianstad.se> <13279.1511879147@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox