From: Cedric Berger <cedric@precidata.com>
To: pgsql-odbc@postgresql.org
Subject: ODBC + Access not working for Foreign Table (FDW)
Date: Fri, 03 Oct 2014 14:52:57 +0200
Message-ID: <542E9C29.5080306@precidata.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hello,
Having just tested my first FDW, I tried to access my foreign
tables with MS Access 2000 using the latest MS ODBC driver.
Unfortunately, I just found that foreign tables are not listed
when you do " Get External Data => Link Tables": Only Views
and Regular tables are shown.
I could workaround the problem by defining a view:
CREATE VIEW workaround AS SELECT * FROM foreign_table.
But it sucks, and I don't know if there are performance drops
going through a view like that.
I glanced at the ODBC sources, and my guess is that inside
info.c, lines like:
strcat(tables_query, " where relkind in ('r', 'v')");
should be modified to add the 'f' type.
Is that correct?
Could someone have a look at that?
right now, I can test a MSI, but I've never compiled ODBC myself.
Cedric
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: cedric@precidata.com
Subject: Re: ODBC + Access not working for Foreign Table (FDW)
In-Reply-To: <542E9C29.5080306@precidata.com>
References: <542E9C29.5080306@precidata.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