Re: grant user access

From: mike g <mike(at)thegodshalls(dot)com>
To: Tom Allison <tallison(at)tacocat(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: grant user access
Date: 2004-07-18 04:35:35
Message-ID: 1090125335.17480.11.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

See http://www.postgresql.org/docs/7.4/static/sql-grant.html

Looks like you need something like GRANT ALL SELECT, ... ON DATABASE foo
To bar;

The below syntax is for table / view level grants.

Mike

On Sat, 2004-07-17 at 20:38, Tom Allison wrote:
> I'm stuck.
>
> How do I grant select, insert, delete, update rights to an entire database?
>
> I tried this:
>
> GRANT SELECT, INSERT, UPDATE, DELETE ON DATABASE foo TO bar;
>
> and it returns
> ERROR: syntax error at or near "INSERT" at character 14
>
> I'm just not getting it, it sure looks like I should be able to.
> I'm logged in as postgres.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2004-07-18 11:07:55 Re: grant user access
Previous Message mike g 2004-07-18 04:15:49 Re: server closed the connection unexpectedly