From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Michael Paquier <michael.paquier@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: PostgreSQL mailing lists <pgsql-odbc@postgresql.org>
Subject: Re: relkind check in info.c
Date: Wed, 14 May 2014 16:46:28 +0300
Message-ID: <537373B4.20909@vmware.com> (raw)
In-Reply-To: <CAB7nPqQHpm9AuCLj+tjuBdm9Obz08XvKP5261Unio7M1qdgNQA@mail.gmail.com>
References: <20140318183906.GW6899@eldon.alvh.no-ip.org>
<CAB7nPqR61ODSdAJgb+Q-WbSHzc70r9gTF5J1NFrLYyu8hZ0Lew@mail.gmail.com>
<CAB7nPqQHpm9AuCLj+tjuBdm9Obz08XvKP5261Unio7M1qdgNQA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 03/19/2014 01:17 AM, Michael Paquier wrote:
> On Wed, Mar 19, 2014 at 8:07 AM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
>> On Wed, Mar 19, 2014 at 3:39 AM, Alvaro Herrera
>> <alvherre@2ndquadrant.com> wrote:
>>> Hi,
>>>
>>> I see that PGAPI_Tables() has a relkind check that only seems to include
>>> tables and views. Does it make sense to have it consider materialized
>>> views as well?
>>>
>>> I don't know anything about psqlodbc -- I'm just going by a question in
>>> the spanish list:
>>> http://www.postgresql.org/message-id/53287159.7040009@gmail.com
>>
>> Yeah, it would make sense to list it by adding 'm' to the relkind
>> queries. I am noting as well that we should list it when invocating
>> SQL_ALL_TABLE_TYPES. A patch to do that is simple, and not worth an
>> additional regression test IMO, just to avoid the pain to have
>> version-related regression tests...
> Just adding that a similar thing should be done with foreign tables.
We need to decide to what to return in the table_type column for them.
"FOREIGN TABLE" and "MATERIALIZED VIEW" would be natural choices.
But it would be good to return the same string that other DBMS's return
for those things. What does SQL Server's driver return for materialized
views? I'm not aware of any other DBMS that implements foreign tables
per the spec, but e.g DB2 has "remote tables" and Oracle has "database
links", which are similar features. I wonder what table type do they return.
- Heikki
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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: hlinnakangas@vmware.com, michael.paquier@gmail.com, alvherre@2ndquadrant.com
Subject: Re: relkind check in info.c
In-Reply-To: <537373B4.20909@vmware.com>
References: <20140318183906.GW6899@eldon.alvh.no-ip.org> <CAB7nPqR61ODSdAJgb+Q-WbSHzc70r9gTF5J1NFrLYyu8hZ0Lew@mail.gmail.com> <CAB7nPqQHpm9AuCLj+tjuBdm9Obz08XvKP5261Unio7M1qdgNQA@mail.gmail.com> <537373B4.20909@vmware.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