From: bangh <banghe@baileylink.net>
To: eddy@securities.com
Cc: Randall Shutt <randall@cscc.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: A question about PG Authorization
Date: Tue, 22 Jan 2002 10:48:15 -0600
Message-ID: <3C4D97CF.7659791E@baileylink.net> (raw)
References: <AEEBJOIDAHEOMKHEOGEIOEHICEAA.eddy@securities.com>
Eddy,
The command you need is:
psql> grant update on table_name to username;
Banghe
Dong Meng wrote:
> Dear Guys,
>
> May I have a question about the authorization of psql?
>
> By using '\z' in psql context, I can get the description of authorization about each table/view.
>
>
> r -- SELECT
> w -- UPDATE/DELETE
> a -- INSERT
> R -- RULE
> arwR -- ALL
>
> Authoriztion switches are specified as above, but what should I do if I want to grant 'update' without 'delete' to some table/view?
>
> thank you
>
> Eddy
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: banghe@baileylink.net, eddy@securities.com, randall@cscc.net
Subject: Re: A question about PG Authorization
In-Reply-To: <3C4D97CF.7659791E@baileylink.net>
References: <AEEBJOIDAHEOMKHEOGEIOEHICEAA.eddy@securities.com> <3C4D97CF.7659791E@baileylink.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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