pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedA question about PG Authorization
3+ messages / 3 participants
[nested] [flat]
* A question about PG Authorization
@ 2002-01-22 06:09 Dong Meng <eddy@securities.com>
2002-01-22 15:40 ` Re: A question about PG Authorization Peter Eisentraut <peter_e@gmx.net>
2002-01-22 16:48 ` Re: A question about PG Authorization bangh <banghe@baileylink.net>
0 siblings, 2 replies; 3+ messages in thread
From: Dong Meng @ 2002-01-22 06:09 UTC (permalink / raw)
To: Randall Shutt <randall@cscc.net>; pgsql-admin
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: A question about PG Authorization
2002-01-22 06:09 A question about PG Authorization Dong Meng <eddy@securities.com>
@ 2002-01-22 15:40 ` Peter Eisentraut <peter_e@gmx.net>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2002-01-22 15:40 UTC (permalink / raw)
To: Dong Meng <eddy@securities.com>; +Cc: Randall Shutt <randall@cscc.net>; pgsql-admin
Dong Meng writes:
> Authoriztion switches are specified as above, but what should I do if
> I want to grant 'update' without 'delete' to some table/view?
Wait for release 7.2.
--
Peter Eisentraut peter_e@gmx.net
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: A question about PG Authorization
2002-01-22 06:09 A question about PG Authorization Dong Meng <eddy@securities.com>
@ 2002-01-22 16:48 ` bangh <banghe@baileylink.net>
1 sibling, 0 replies; 3+ messages in thread
From: bangh @ 2002-01-22 16:48 UTC (permalink / raw)
To: eddy@securities.com; +Cc: Randall Shutt <randall@cscc.net>; pgsql-admin
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-01-22 16:48 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-01-22 06:09 A question about PG Authorization Dong Meng <eddy@securities.com>
2002-01-22 15:40 ` Peter Eisentraut <peter_e@gmx.net>
2002-01-22 16:48 ` bangh <banghe@baileylink.net>
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