pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: PostgreSQL ODBC List <pgsql-odbc@postgresql.org>
Subject: Filtering ODBC table list
Date: Wed, 3 Oct 2007 08:57:09 -0400
Message-ID: <20071003125709.GB5031@tamriel.snowman.net> (raw)

Greetings,

  We've run into a couple of issues that, in general, I think would be
  helped greatly by having some way to filter the list of tables which
  are shown in the ODBC link/import list.  I'm curious if that is
  something which is possible to implement, the difficulty involved, and
  if anyone would be interested in working on it.

  Basically, it's like this:

  #1: Too many tables.  If you have more than (I think) 65,535 tables in
  the database, access breaks.  What happens is that if you pick a table
  beyond that point, it just tries to pull in all tables past that
  limit.  For example, 70,000 tables, user picks table 67,000 (and
  *just* that table in the ODBC link list) then access will try and
  link/import all tables from 65,536 -> 70,000.  This is kind of a
  problem.  I might be off on the exact numbers, but I don't think so.

  #2: Permissions issues.  Showing tables that a user doesn't have
  access to is, at best, frustrating.  Even just filtering based on
  usage rights on schemas would be an improvement, if not going the full
  way to relation-level permission checks.  It really strikes me that
  that's not a terribly difficult thing to check or incorporate into a
  query that pulls the table info.

  #3: Slow.  It takes *forever* on a gigabit link w/ a good desktop box
  and a fast-as-hell server to get a full table list (see the 70k tables
  example above for the number of tables we're talking about here).  I
  don't know what the latency is from but I suspect it's from Access
  getting the table definitions and whatnot for every table.  The server
  doesn't seem busy at all while this is going on.  I'm really hopeful
  that some kind of filtering mechanism would improve this situation
  greatly by only pulling down and getting the info for those tables
  which someone is interested in/has access to.

  What I would like to see, honestly, is two things:  A config toggle to
  say "only show schemas/tables I have access to" and some way to say,
  preferrably w/o changing some "config" option, "show me only tables in
  this schema" or "show me only tables in schemas that match this
  regexp".  I realize there are limitations from Access and the ODBC
  interface that might make these things impossible to do, if so, I'd
  really like to hear about them now so I can think about how I could
  implement the same thing through some other means (like making a bunch
  of different databases or something; I'd hate it, but if there's no
  other way... <Shrug>).

  Comments?  Thoughts?  I might be able to get some time to work on this
  myself, but I'd really like to hear what other people think or if
  anyone else is interested in working on it or already has some
  solution before spending resources on it.

  	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (3+ messages)  latest in thread

Message-ID: <20071003125709.GB5031@tamriel.snowman.net>
Permalink:  ../20071003125709.GB5031@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20071003125709.GB5031@tamriel.snowman.net

 · 

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-odbc@postgresql.org
  Cc: sfrost@snowman.net
  Subject: Re: Filtering ODBC table list
  In-Reply-To: <20071003125709.GB5031@tamriel.snowman.net>
  References: <20071003125709.GB5031@tamriel.snowman.net>

* 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