Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 692449FC11A for ; Fri, 22 Jun 2007 05:29:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 79791-02 for ; Fri, 22 Jun 2007 05:29:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from p15195424.pureserver.info (p15195424.pureserver.info [82.165.34.74]) by postgresql.org (Postfix) with ESMTP id 8E83C9FC0BD for ; Fri, 22 Jun 2007 05:29:51 -0300 (ADT) Received: from dsl-217-155-86-70.zen.co.uk ([217.155.86.70] helo=[192.168.0.2]) by p15195424.pureserver.info with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.43) id 1I1eWX-0007AT-3X; Fri, 22 Jun 2007 09:29:48 +0100 From: Mark Cave-Ayland To: Hiroshi Inoue Cc: pgsql-odbc@postgresql.org In-Reply-To: <46793E14.6070200@tpf.co.jp> References: <1180628545.15060.26.camel@mca-desktop> <1181232821.12462.10.camel@mca-desktop> <1181900413.6856.10.camel@mca-desktop> <46793E14.6070200@tpf.co.jp> Date: Fri, 22 Jun 2007 09:29:44 +0100 Message-Id: <1182500984.6261.14.camel@mca-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-SA-Exim-Connect-IP: 217.155.86.70 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk Subject: Re: Proposal for new pgsqlODBC feature - hiding tables inaccessible to the current user Content-Type: text/plain Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.1 (built Wed, 05 Jan 2005 10:54:05 -0500) X-SA-Exim-Scanned: Yes (on p15195424.pureserver.info) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/49 X-Sequence-Number: 9038 On Wed, 2007-06-20 at 23:47 +0900, Hiroshi Inoue wrote: > Recently added boolean options are defined as some bits in Extra Opts. > Is it OK to define the option as a bit in Extra Opts ? Inoue-san, Thanks for your feedback. I've had a look at the code for Extra Options (and thought a bit more about it), and I'd prefer to keep the option as a separate tick-box if possible. My reason for this is that the people who want this feature are the people who want to get rid of extra tables they see over ODBC. Generally these people have already found the "Hide System Tables" option but can't work out how to remove the extra tables, so for me it makes sense to put the two options close to each other. Also, for support purposes, it would be much easier to explain a tick box over the phone rather than get them to read out the "Extra Options", calculate the new value and then type it back in as a hex value! I wonder if anyone else who would use this option has any other feelings on this? > >> When this box is ticked, only tables on which the user > >> has one of SELECT, INSERT, DELETE or UPDATE privileges will appear in > >> the table list for the given DSN. > > Isn't it sufficient to chack SELECT privilege only ? Possibly. I wasn't sure on the exact semantics of ODBC, but considered that for example, if you have DELETE privilege on a table, you would still expect to see it in a table listing even if you couldn't see the contents itself. This is the same behaviour psqlODBC exhibits without the patch if your user doesn't have permissions on the tables in the ODBC listing. Kind regards, Mark.