Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id DCF2F2E004B for ; Thu, 19 Jun 2008 04:18:29 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96049-01 for ; Thu, 19 Jun 2008 04:18:03 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by developer.postgresql.org (Postfix) with ESMTP id EB5BA2E0030 for ; Thu, 19 Jun 2008 04:18:03 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so7193137rvf.43 for ; Thu, 19 Jun 2008 00:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=kKeUGfDHW0uid25390cjVzpmJ1nQUzw47nxrGVA4Ok4=; b=jRtckYFTKlspPBV6WDqiFJ3udDuwG5Z51dq99VbVsQ7QH18cDB/2z9rKdKP08sAhWV kVvYrFpOA+0OfjZzb301aWdCiUcbj4qHfNifHINmx0kNmOAaYFWcf+35W3IW243n7EKX ii32CYjPXwxiAvCv0zbmiq2sB1Cvs0h3ObAFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=OXfLW8xLx0bOo7ScUaCQPVfv+27tjwtcw1/mqZ0Nl9xh/CzGg+t0cD7hn826UFJX6Z kOB6l0GpEQCEv/uQ43BOPCX59L1hk4kwMxP+kcSnu0xXMMjQMl537yf01I4tRt0utPJl 4C1ZA7O/ekUOpmfny9HS605mlQ5xayi/8VfMQ= Received: by 10.141.74.18 with SMTP id b18mr6198201rvl.95.1213859881766; Thu, 19 Jun 2008 00:18:01 -0700 (PDT) Received: by 10.141.205.2 with HTTP; Thu, 19 Jun 2008 00:18:01 -0700 (PDT) Message-ID: <2352385b0806190018q4231ba53t317531dacbf31fb3@mail.gmail.com> Date: Thu, 19 Jun 2008 00:18:01 -0700 From: "pradeep kumar" To: depesz@depesz.com Subject: Re: URGENT: how to GRANT privillages to user/role on relation's row?? Cc: pgsql-admin@postgresql.org In-Reply-To: <20080618171118.GA22791@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2352385b0806181005k4b96695cs3e954afab69350b@mail.gmail.com> <20080618171118.GA22791@depesz.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200806/151 X-Sequence-Number: 29489 how to GRANT privillages to user/role on relation's row?? we can grant privvilages to user/role on tables/relations by GRANT options[SELECT | INSERT | UPDATE | DELETE | REFERENCES | TRIGGER |ALL]privillages ON relation/tablename TO dbuser/role; GRANT command but how can we GRANT privillages to a user on a row ??? ? is it possible by RULES ???? On 6/18/08, hubert depesz lubaczewski wrote: > On Wed, Jun 18, 2008 at 10:05:13AM -0700, pradeep kumar wrote: >> GRANT command but how can we GRANT privillages to a user on a row ??? ? > > in standard postgresql you can't. > > if you want row-level privileges, check this: > http://code.google.com/p/sepgsql/ > > depesz >