Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4B3FF9FB933 for ; Fri, 29 Jun 2007 04:38:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 99777-01 for ; Fri, 29 Jun 2007 04:37:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from developer.pgadmin.org (developer.pgadmin.org [63.246.23.140]) by postgresql.org (Postfix) with ESMTP id 3AED09FC1CD for ; Fri, 29 Jun 2007 04:37:59 -0300 (ADT) Received: from snake.local ([62.232.55.118]) (authenticated bits=0) by developer.pgadmin.org (8.13.8/8.13.8) with ESMTP id l5T7bjOp021331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 29 Jun 2007 07:37:47 GMT Message-ID: <4684B6CF.1050603@postgresql.org> Date: Fri, 29 Jun 2007 08:37:51 +0100 From: Dave Page User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Hiroshi Inoue CC: Mark Cave-Ayland , pgsql-odbc@postgresql.org Subject: Re: Proposal for new pgsqlODBC feature - hiding tables inaccessible to the current user References: <1180628545.15060.26.camel@mca-desktop> <1181232821.12462.10.camel@mca-desktop> <1181900413.6856.10.camel@mca-desktop> <46793E14.6070200@tpf.co.jp> <1182500984.6261.14.camel@mca-desktop> <4681A8CC.1020706@tpf.co.jp> <1182979359.13690.15.camel@mca-desktop> <4683D43A.3040103@tpf.co.jp> <4683D9A3.7010307@postgresql.org> <468452D1.3000009@tpf.co.jp> In-Reply-To: <468452D1.3000009@tpf.co.jp> X-Enigmail-Version: 0.95.1 OpenPGP: url=http://www.pgadmin.org/pgp/davepage.pgp Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/65 X-Sequence-Number: 9054 Hiroshi Inoue wrote: > Dave Page wrote: >> Hiroshi Inoue wrote: >>> Mark Cave-Ayland wrote: >>>> On Wed, 2007-06-27 at 09:01 +0900, Hiroshi Inoue wrote: >>>> >>>>> How about changing the default behavior of SQLTables to list only >>>>> SELECTable tables and add a bit to Extra Opts to list inaccessible >>>>> tables also ? >>>> I think this would risk breaking a lot of existing applications. >>> Really ? >>> I can hardly imagine the applications which would update/delete >>> the rows whose contents couldn't be seen. >> insert-only audit tables? >> >> Yes, they should really be handled by server-side triggers, but I know >> of at least a couple of apps running on PostgreSQL with psqlODBC that do >> it client side. > > Hmm the apps list the tables using SQLTables() ? I don't recall (and I don't have access to them any more to check), but as we've had the current behaviour for the last 10 years or so, and no-one has really complained until now, I don't think we should risk changing the default - at least without checking for SELECT, UPDATE, INSERT or DELETE rather than just SELECT. Regards, Dave