Re: Using role priviledges for pg_dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bill Moran <wmoran(at)collaborativefusion(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Using role priviledges for pg_dump
Date: 2008-05-17 02:50:45
Message-ID: 18453.1210992645@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bill Moran <wmoran(at)collaborativefusion(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-05-17 03:01:57 Re: Function to return both integer and SETOF refcursor
Previous Message Chuck Bai 2008-05-17 02:50:20 Function to return both integer and SETOF refcursor