pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC + Access not working for Foreign Table (FDW)
3+ messages / 2 participants
[nested] [flat]

* ODBC + Access not working for Foreign Table (FDW)
@ 2014-10-03 12:52 Cedric Berger <cedric@precidata.com>
  2014-10-03 13:07 ` Re: ODBC + Access not working for Foreign Table (FDW) Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Cedric Berger @ 2014-10-03 12:52 UTC (permalink / raw)
  To: pgsql-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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: ODBC + Access not working for Foreign Table (FDW)
  2014-10-03 12:52 ODBC + Access not working for Foreign Table (FDW) Cedric Berger <cedric@precidata.com>
@ 2014-10-03 13:07 ` Michael Paquier <michael.paquier@gmail.com>
  2014-10-03 13:18   ` Re: ODBC + Access not working for Foreign Table (FDW) Cedric Berger <cedric@precidata.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Paquier @ 2014-10-03 13:07 UTC (permalink / raw)
  To: Cedric Berger <cedric@precidata.com>; +Cc: pgsql-odbc

On Fri, Oct 3, 2014 at 9:52 PM, Cedric Berger <cedric@precidata.com> wrote:

>      strcat(tables_query, " where relkind in ('r', 'v')");
> should be modified to add the 'f' type.
> Is that correct?
>
Close enough, there are a couple of extra things to consider though.


> Could someone have a look at that?
>
Well, this has been raised not so long ago, resulting in the submission of
a not-so-beautiful patch I have to say :)
http://www.postgresql.org/message-id/CAB7nPqR0apHpiPAi4J2e3oR2jZ8MREyJAzxdWMjrr4h5PsRp4w@mail.gmail....
Regards,
-- 
Michael

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: ODBC + Access not working for Foreign Table (FDW)
  2014-10-03 12:52 ODBC + Access not working for Foreign Table (FDW) Cedric Berger <cedric@precidata.com>
  2014-10-03 13:07 ` Re: ODBC + Access not working for Foreign Table (FDW) Michael Paquier <michael.paquier@gmail.com>
@ 2014-10-03 13:18   ` Cedric Berger <cedric@precidata.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Cedric Berger @ 2014-10-03 13:18 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-odbc

On 03/10/14 15:07, Michael Paquier wrote:

> On Fri, Oct 3, 2014 at 9:52 PM, Cedric Berger <cedric@precidata.com
> <mailto:cedric@precidata.com>> wrote:
>
>           strcat(tables_query, " where relkind in ('r', 'v')");
>     should be modified to add the 'f' type.
>     Is that correct?
>
> Close enough, there are a couple of extra things to consider though.
>
>     Could someone have a look at that?
>
> Well, this has been raised not so long ago, resulting in the submission
> of a not-so-beautiful patch I have to say :)
> http://www.postgresql.org/message-id/CAB7nPqR0apHpiPAi4J2e3oR2jZ8MREyJAzxdWMjrr4h5PsRp4w@mail.gmail....

Cool!

So what is the process here?

Is there something I can do to help that code (or sth similar)
getting checked in?

Thanks,
Cedric



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2014-10-03 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-10-03 12:52 ODBC + Access not working for Foreign Table (FDW) Cedric Berger <cedric@precidata.com>
2014-10-03 13:07 ` Michael Paquier <michael.paquier@gmail.com>
2014-10-03 13:18   ` Cedric Berger <cedric@precidata.com>

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