Re: Using role priviledges for pg_dump - Mailing list pgsql-general

From Tom Lane
Subject Re: Using role priviledges for pg_dump
Date
Msg-id 18453.1210992645@sss.pgh.pa.us
Whole thread Raw
In response to Using role priviledges for pg_dump  (Bill Moran <wmoran@collaborativefusion.com>)
List pgsql-general
Bill Moran <wmoran@collaborativefusion.com> writes:
> Given:

> CREATE ROLE joe WITH LOGIN;
> CREATE ROLE dumpable;
> ALTER GROUP dumpable ADD USER joe;

> If I have a database called db1 to which the role dumpable has enough
> permissions to do a full pg_dump, but he user joe does not, how can
> joe do a pg_dump?  Is it possible?

Uh, given the setup you show it seems like joe should have enough
privileges.  Can you give a concrete example of it going wrong?

            regards, tom lane

pgsql-general by date:

Previous
From: Chuck Bai
Date:
Subject: Function to return both integer and SETOF refcursor
Next
From: Tom Lane
Date:
Subject: Re: Function to return both integer and SETOF refcursor