Re: How to grant on all tables in pgAdmin4?

From: Jack Royal-Gordon <jackrg(at)pobox(dot)com>
To: QA Collective <theqacollective(at)gmail(dot)com>
Cc: pgadmin-support(at)lists(dot)postgresql(dot)org
Subject: Re: How to grant on all tables in pgAdmin4?
Date: 2020-09-03 19:20:40
Message-ID: 1A062292-DEC1-44A0-B0FD-715B9B86C64D@pobox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Maybe I’m missing something here, but since pgAdmin includes a query window, you can connect to the server, open a query window, type that command into the query window and then execute it.

The query window is an alternative to the graphical interface. I would expect that just about anything you can do in the graphical interface can be accomplished in the query window (at least anything that resulted in one or more SQL commands certainly could).

> On Sep 2, 2020, at 8:31 PM, QA Collective <theqacollective(at)gmail(dot)com> wrote:
>
> Hello,
>
> I hope I've got the correct list for the pgAdmin4 web tool?
>
> I just wanted to ask, how is it possible via pgAdmin4 UI to execute a command like:
>
> GRANT SELECT ON ALL TABLES IN SCHEMA abc TO "viewer";
>
> When I went to use the Grant Wizard, I selected the tickbox for all tables, but that resulted in SQL which granted select on each individual table...which isn't great for a database you expect to grow in tables in future. Ideally, this would grant select on all tables as per the command above.
>
> Then of course, there is the high chance I've missed something - given I'm relatively new to all of this.
>
> Andrew

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Григорий Протасов 2020-09-06 07:49:22 Problem
Previous Message Khushboo Vashi 2020-09-03 04:12:03 Re: pgAdmin4 presents blank screen after login