Received: from neptun.sns-felb.debis.de (neptun.sns-felb.debis.de [53.122.101.2]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eBS9XNL94295 for ; Thu, 28 Dec 2000 04:33:23 -0500 (EST) (envelope-from jhartwig@debis.com) Received: by neptun.sns-felb.debis.de; id KAA23348; Thu, 28 Dec 2000 10:38:07 +0100 Received: from unknown(53.113.82.10) by neptun.sns-felb.debis.de via smap (V5.0) id xma023330; Thu, 28 Dec 00 10:38:02 +0100 Received: from mail1.b3.dsh.de (localhost [127.0.0.1]) by dshmail1.dsh.de (8.9.1/8.8.7) with ESMTP id KAA25219; Thu, 28 Dec 2000 10:35:12 +0100 (MET) Received: from debis.com ([138.201.143.121]) by mail1.b3.dsh.de (8.10.0/8.10.0) with ESMTP id eBS9XN508971; Thu, 28 Dec 2000 10:33:23 +0100 Message-ID: <3A4B08FA.20A07F52@debis.com> Date: Thu, 28 Dec 2000 10:33:46 +0100 From: Jens Hartwig Organization: debis Systemhaus GEI X-Mailer: Mozilla 4.7 [de] (WinNT; I) X-Accept-Language: de MIME-Version: 1.0 To: "W. van den Akker" CC: pgsql-general@postgresql.org Subject: Re: User Privileges References: <328DC4EC2C9B74428D8DAED1931285BF10D987@FLAN-EXCH01.corp.insage.com> <004701c06f69$3abe1980$078353d8@danwilson> <000401c06fda$b65ce9b0$0500020a@wilsoft.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200012/768 X-Sequence-Number: 2052 Hello, the information can be found in the system-table-column PG_CLASS.RELACL: SELECT RELACL FROM PG_CLASS WHERE RELNAME = 't_dummy'; The result seems to be an array of granted permissions, so you should treat it is an array and look for the appropriate user- or group-name. Hope this helps ... Regards, Jens "W. van den Akker" schrieb: > > How do I retrieve this privilages? > I want to disable menu-options within a program. For that I have to > retrieve the privilages for some tables. > > gr, > > Willem > > ----- Original Message ----- > From: "Dan Wilson" > To: "Niral Trivedi" ; > > Sent: Tuesday, December 26, 2000 7:25 PM > Subject: Re: [GENERAL] User Privileges > > > > For example I have 5 tables in database A. And now I want to give > > > SELECT/UPDATE/INSERT privileges to a user to all 5 tables. But according > > to > > > documentation, I have to execute 'GRANT' query 3 times(for > > > select/update/insert) per table. meaning total of 15 times!!!! > > > > That's incorrect... you can do it all in one statement: > > > > GRANT select,update,insert TO "" ON table_1,table_2,table_3,etc > > > > http://www.postgresql.org/users-lounge/docs/7.0/user/sql-grant.htm > > > > -Dan > > > > > > ============================================= Jens Hartwig --------------------------------------------- debis Systemhaus GEI mbH 10875 Berlin Tel. : +49 (0)30 2554-3282 Fax : +49 (0)30 2554-3187 Mobil : +49 (0)170 167-2648 E-Mail : jhartwig@debis.com =============================================