Received: from mocha2.baileylink.net (mocha2.baileylink.net [12.152.112.28]) by postgresql.org (8.11.3/8.11.4) with SMTP id g0MGonl18259 for ; Tue, 22 Jan 2002 11:50:49 -0500 (EST) (envelope-from banghe@baileylink.net) Received: (qmail 6737 invoked from network); 22 Jan 2002 16:41:48 -0000 Received: from xindu.baileylink.net (HELO baileylink.net) (12.152.112.61) by mocha2.baileylink.net with SMTP; 22 Jan 2002 16:41:48 -0000 Message-ID: <3C4D97CF.7659791E@baileylink.net> Date: Tue, 22 Jan 2002 10:48:15 -0600 From: bangh X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en,zh-CN,zh,zh-TW,pdf MIME-Version: 1.0 To: eddy@securities.com CC: Randall Shutt , pgsql-admin@postgresql.org Subject: Re: A question about PG Authorization References: Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit X-Archive-Number: 200201/142 X-Sequence-Number: 3029 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