pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: danap <danap@itstriangle.com>
To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Filtering DatabaseMetaData to show only the items for which the current user has access
Date: Tue, 13 Sep 2016 15:02:55 -0600
Message-ID: <57D8697F.4010800@itstriangle.com> (raw)
In-Reply-To: <CAB=Je-EWrK08vfRg4CHtcNmmJHTafg-BOz=8=rjWSdxiisb9SA@mail.gmail.com>
References: <338A7B0E9A69874B9D933A0B0D2527A4E708469E@adama.fhcrc.org>
	<CADK3HHLRE9E9hYh+LjHk00FT7sh+S9qf_zFAOOSN1L+9tW5dXw@mail.gmail.com>
	<CAB=Je-EWrK08vfRg4CHtcNmmJHTafg-BOz=8=rjWSdxiisb9SA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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



view thread (6+ messages)

Message-ID: <57D8697F.4010800@itstriangle.com>
Permalink:  ../57D8697F.4010800@itstriangle.com/
Also on:    postgresql.org/message-id/57D8697F.4010800@itstriangle.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: danap@itstriangle.com, sitnikov.vladimir@gmail.com
  Subject: Re: Filtering DatabaseMetaData to show only the items for which the current user has access
  In-Reply-To: <57D8697F.4010800@itstriangle.com>
  References: <338A7B0E9A69874B9D933A0B0D2527A4E708469E@adama.fhcrc.org> <CADK3HHLRE9E9hYh+LjHk00FT7sh+S9qf_zFAOOSN1L+9tW5dXw@mail.gmail.com> <CAB=Je-EWrK08vfRg4CHtcNmmJHTafg-BOz=8=rjWSdxiisb9SA@mail.gmail.com> <57D8697F.4010800@itstriangle.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox