Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjugr-0005Ie-Kg for pgsql-jdbc@arkaria.postgresql.org; Tue, 13 Sep 2016 20:52:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bjugr-0006Yu-6z for pgsql-jdbc@arkaria.postgresql.org; Tue, 13 Sep 2016 20:52:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bjugM-0005WL-5z for pgsql-jdbc@postgresql.org; Tue, 13 Sep 2016 20:51:54 +0000 Received: from smtp694.redcondor.net ([208.80.206.94]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bjugI-0004HP-Bi for pgsql-jdbc@postgresql.org; Tue, 13 Sep 2016 20:51:51 +0000 Received: from mailproxy3.av-mx.com ([137.118.40.133]) by smtp694.redcondor.net ({c8ad8081-e921-4f15-9a53-034744fe478f}) via TCP (outbound) with ESMTP id 20160913205141443_0694; Tue, 13 Sep 2016 20:51:41 +0000 X-RC-FROM: Received: from [192.168.157.52] (unknown [76.75.5.113]) (Authenticated sender: danap@itstriangle.com) by mailproxy3.av-mx.com (Postfix) with ESMTPA id EFFDA2001C3; Tue, 13 Sep 2016 16:51:35 -0400 (EDT) Subject: Re: Filtering DatabaseMetaData to show only the items for which the current user has access To: Vladimir Sitnikov , PostgreSQL JDBC References: <338A7B0E9A69874B9D933A0B0D2527A4E708469E@adama.fhcrc.org> From: danap Message-ID: <57D8697F.4010800@itstriangle.com> Date: Tue, 13 Sep 2016 15:02:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-DLP-OUTBOUND: 137.118.40.128/25 X-MAG-OUTBOUND: greymail.redcondor.net@137.118.40.128/25 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Vladimir Sitnikov wrote: > Dave>I think a connection parameter patch might be acceptable. > > I think the main question is which filters should be enabled by default. > For instance: should it list a table that is read-only (i.e. no write grants)? My application requires access to possible read-only tables to gain functionality, like for instance creating schema for the database. I would have to check. Is it really the functionlity of the JDBC to limit access to the database? Which is already provided through the DatabaseMetaData. Filter by default on tables that are not readable or writable is one thing, but limiting by default read-only tables is going to possibly limit functionality of clients which depend on these tables for information. danap. > > However, I think it makes sense to hide those tables by default that are > completely inaccessible (neither readable, nor writable). > > Vladimir -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc