Re: [GENERAL] requests / suggestions to help with backups

2007-02-17 Thread Bruno Wolff III
On Thu, Feb 15, 2007 at 22:39:13 -0500, Lou Duchez <[EMAIL PROTECTED]> wrote: > > 1) "grant select on database ..." or, hypothetically, "grant select on > cluster". The goal would be to create a read-only PostgreSQL user, one > who can read the contents of an entire database (or even the entire

Re: [GENERAL] requests / suggestions to help with backups

2007-02-16 Thread Ian Harding
On 2/16/07, Lou Duchez <[EMAIL PROTECTED]> wrote: Like everyone else, I use pg_dump for backup purposes; I have a cron job that runs a pg_dump whose output is then FTP'd elsewhere. Two things that would make my life easier: 1) "grant select on database ..." or, hypothetically, "grant select on c

Re: [GENERAL] requests / suggestions to help with backups

2007-02-16 Thread Lou Duchez
> >Certainly, I've > >tried "grant select on database mydatabase to user myuser"; it doesn't > >work, because "select" is not a database-level privilege. > Sorry, you're right on that one. I misread it. However, it shouldn't > be too hard to write a script, either in a procedural language or hi

Re: [GENERAL] requests / suggestions to help with backups

2007-02-16 Thread Erik Jones
Lou Duchez wrote: Lou Duchez wrote: Like everyone else, I use pg_dump for backup purposes; I have a cron job that runs a pg_dump whose output is then FTP'd elsewhere. Two things that would make my life easier: 1) "grant select on database ..." or, hypothetically, "grant select on cluster"

Re: [GENERAL] requests / suggestions to help with backups

2007-02-16 Thread Lou Duchez
> Lou Duchez wrote: > >Like everyone else, I use pg_dump for backup purposes; I have a cron job > >that runs a pg_dump whose output is then FTP'd elsewhere. Two things > >that would make my life easier: > > > >1) "grant select on database ..." or, hypothetically, "grant select on > >cluster". The

Re: [GENERAL] requests / suggestions to help with backups

2007-02-15 Thread Tom Lane
Erik Jones <[EMAIL PROTECTED]> writes: > Lou Duchez wrote: >> 2) "pg_dumpall -E". If I could specify a single encoding for all my >> database dumps, I could use pg_dumpall. > I guess you missed this: > http://www.postgresql.org/docs/8.2/interactive/sql-grant.html Also, on the second point, you c

Re: [GENERAL] requests / suggestions to help with backups

2007-02-15 Thread Erik Jones
Lou Duchez wrote: Like everyone else, I use pg_dump for backup purposes; I have a cron job that runs a pg_dump whose output is then FTP'd elsewhere. Two things that would make my life easier: 1) "grant select on database ..." or, hypothetically, "grant select on cluster". The goal would be to c

[GENERAL] requests / suggestions to help with backups

2007-02-15 Thread Lou Duchez
Like everyone else, I use pg_dump for backup purposes; I have a cron job that runs a pg_dump whose output is then FTP'd elsewhere. Two things that would make my life easier: 1) "grant select on database ..." or, hypothetically, "grant select on cluster". The goal would be to create a read-only Po