Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id E5CDC152A2F4 for ; Fri, 27 Jul 2012 10:56:27 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sul1m-0001yA-IO for pgsql-bugs@postgresql.org; Fri, 27 Jul 2012 13:56:27 +0000 Received: by pbbrp8 with SMTP id rp8so5045710pbb.19 for ; Fri, 27 Jul 2012 06:56:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:x-gm-message-state; bh=gTnoUgmMd080ldGKZgsMOBJJm/A9Co+wPaOdYaou0e8=; b=UULPnmM75JNjTpv9aYaawY6JoYkdOEn5YEHZJUC2rIoirtxeLU3vL9BSdfP54KC/vK YSvHpmbmlXlL4yQLAdw57LbfRxyRMm7mcqxGGiQrLmxgV2WrZnMKMJxTtahpf+5nqdnc xiQUoNY0CpOCazHBaKQsXrgzB69KzRL1LgEeeSVrJAag01IGaqJOUZCtmRRcINWnTuip YmOc31F7X6+5u2jiet6OV8ps7SsExLqnUMLkP8gy9uuKkqKYswzSjOlNVH61NCdpizhQ ndp5W7CQgCaBKonpbX4DHCcwwSD+hpykgg5HdlfqkFOwr8N/40Xn6SdFbhnMw7ku2isx 92Og== Received: by 10.68.134.201 with SMTP id pm9mr14737599pbb.49.1343397373514; Fri, 27 Jul 2012 06:56:13 -0700 (PDT) Received: from ayaki.localdomain (124-169-186-146.dyn.iinet.net.au. [124.169.186.146]) by mx.google.com with ESMTPS id se9sm1965994pbc.25.2012.07.27.06.56.10 (version=SSLv3 cipher=OTHER); Fri, 27 Jul 2012 06:56:12 -0700 (PDT) Message-ID: <50129DF7.6070702@ringerc.id.au> Date: Fri, 27 Jul 2012 21:56:07 +0800 From: Craig Ringer Reply-To: pgsql-bugs User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: fabio.lunkes@gmail.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6768: Failure in OBDC References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------060908060802010700090802" X-Gm-Message-State: ALoCoQkYLndFC4HrM5SOwU/y9CTUnvjEVh4+sWRabbluy+d1dprnkskor2rL6nRF18+lT13l+bhd X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/222 X-Sequence-Number: 33698 This is a multi-part message in MIME format. --------------060908060802010700090802 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 07/27/2012 07:52 AM, fabio.lunkes@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 6768 > Logged by: Fábio Hentz Lunkes > Email address: fabio.lunkes@gmail.com > PostgreSQL version: 9.1.0 > Operating system: Windows 7 > Description: > > Hellow. > My teste to developer application with Microssoft Access, ODBC and Postgres. > With grant selet in one field, other fields is revoke permissions, access in > table with Microsoft Access is not possible. Failure is generate, to > permission denied. In Microsoft MS Query, no error. I think you'll need to explain this in a bit more detail, with: - Table definitions - The EXACT commands you ran - The EXACT error messages As far as I know, running: GRANT SELECT on tablename(column) TO user; shouldn't in any way restrict their existing rights, and the documentation backs that up: http://www.postgresql.org/docs/9.1/static/sql-grant.html A user may performSELECT,INSERT, etc. on a column if he holds that privilege for either the specific column or its whole table. Granting the privilege at the table level and then revoking it for one column will not do what you might wish: the table-level grant is unaffected by a column-level operation. ... so I think you might need to show what's happening in a bit more detail. Beware that there isn't a big Microsoft Access community here. -- Craig Ringer --------------060908060802010700090802 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 07/27/2012 07:52 AM, fabio.lunkes@gmail.com wrote:
The following bug has been logged on the website:

Bug reference:      6768
Logged by:          Fábio Hentz Lunkes
Email address:      fabio.lunkes@gmail.com
PostgreSQL version: 9.1.0
Operating system:   Windows 7
Description:        

Hellow.
My teste to developer application with Microssoft Access, ODBC and Postgres.
With grant selet in one field, other fields is revoke permissions, access in
table with Microsoft Access is not possible. Failure is generate, to
permission denied. In Microsoft MS Query, no error.

I think you'll need to explain this in a bit more detail, with:

- Table definitions
- The EXACT commands you ran
- The EXACT error messages

As far as I know, running:

  GRANT SELECT on tablename(column) TO user;


shouldn't in any way restrict their existing rights, and the documentation backs that up:

http://www.postgresql.org/docs/9.1/static/sql-grant.html
A user may perform SELECT, INSERT, etc. on a column if he holds that privilege for either the specific column or its whole table. Granting the privilege at the table level and then revoking it for one column will not do what you might wish: the table-level grant is unaffected by a column-level operation.
... so I think you might need to show what's happening in a bit more detail.

Beware that there isn't a big Microsoft Access community here.

--
Craig Ringer
--------------060908060802010700090802--