X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 10A8FD1E153 for ; Fri, 30 Apr 2004 10:32:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89865-04 for ; Fri, 30 Apr 2004 10:32:33 -0300 (ADT) Received: from mail.deg.cc (mail.deg.cc [198.70.16.196]) by svr1.postgresql.org (Postfix) with ESMTP id 137FBD1E7C1 for ; Fri, 30 Apr 2004 10:32:29 -0300 (ADT) Received: from deg.cc (barney.deg.cc [198.70.16.205]) by mail.deg.cc (Postfix) with ESMTP id 1B46555F89; Fri, 30 Apr 2004 09:32:28 -0400 (EDT) Message-ID: <40925695.8060908@deg.cc> Date: Fri, 30 Apr 2004 09:37:25 -0400 From: Pallav Kalva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: "scott.marlowe" , pgsql-sql@postgresql.org Subject: Re: Permissions not working References: <40917768.8040107@deg.cc> <17807.1083280047@sss.pgh.pa.us> In-Reply-To: <17807.1083280047@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/333 X-Sequence-Number: 17708 Tom Lane wrote: >Pallav Kalva writes: > > >>I have a database for ex: 'ups' and it was owned previously by >>'postgres(superuser)' but now i have changed the ownership to new user >>'ups' all the tables are owned by these user 'ups'. >> >> > >That isn't a supported operation. How did you do it exactly? I suspect >that you got it wrong somehow ... > Sorry, I wasnt clear on this. First I created a database called 'ups' and made user 'ups' as its owner. Then I dumped the database from backup, the dumped database backup was owned by 'postgres ' user but all the tables in this database are owned by 'ups' user. > > > >>I dont want user 'test' to access any tables from the 'ups' >>database, i tried revoking permissions it still doesnt work. >> >> > >What did you revoke? What does psql's "\z" command show for the problem >tables? > > regards, tom lane > >---------------------------(end of broadcast)--------------------------- >TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > > Here is the output from the \z . I tried to revoke all the privileges from the PUBLIC and user 'test'. usps=> \z citystate_alias Access privileges for database "usps" Schema | Table | Access privileges --------+-----------------+----------------------------------------------------------------------------------------------------------------------- public | citystate_alias | {postgres=a*r*w*d*R*x*t*/postgres,=r/postgres,usps=arwdRxt/postgres,"group 100=r/usps","group ea_development=r/usps"} (1 row)