pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Minimum permissions required for pg_dump as a backup user
2+ messages / 2 participants
[nested] [flat]

* Minimum permissions required for pg_dump as a backup user
@ 2002-10-10 22:46  Andrew McMillan <andrew@catalyst.net.nz>
  0 siblings, 1 reply; 2+ messages in thread

From: Andrew McMillan @ 2002-10-10 22:46 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org; +Cc: team-srs@catalyst.net.nz

Hi All,

Does anyone know what the minimum permission is required to have
database backups run as a less privileged user?

We have tried granting 'SELECT' to our backup user, but it appears that
this is insufficient as pg_dump wants to lock things while it runs.

Is there some privilege less than 'UPDATE' that would allow the backups
to operate, but otherwise allow the backup user read-only access to the
database?

Thanks,
					Andrew.
-- 
---------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/         PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201     MOB: +64(21)635-694    OFFICE: +64(4)499-2267
           Survey for free with http://survey.net.nz/ 
---------------------------------------------------------------------




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Minimum permissions required for pg_dump as a backup user
@ 2002-10-11 04:16  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Andrew McMillan <andrew@catalyst.net.nz>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2002-10-11 04:16 UTC (permalink / raw)
  To: Andrew McMillan <andrew@catalyst.net.nz>; +Cc: pgsql-novice@postgresql.org; team-srs@catalyst.net.nz

Andrew McMillan <andrew@catalyst.net.nz> writes:
> Does anyone know what the minimum permission is required to have
> database backups run as a less privileged user?

Backups should be run as the superuser.  Don't waste your time trying
to kluge up something else.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-10-11 04:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-10 22:46 Minimum permissions required for pg_dump as a backup user Andrew McMillan <andrew@catalyst.net.nz>
2002-10-11 04:16 ` Tom Lane <tgl@sss.pgh.pa.us>

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