pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mahesh Kansara <mahesh_kansara@yahoo.com>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
Subject: Re: PostgreSQL 10 Partition Tables: Support through PG Driver
Date: Thu, 26 Apr 2018 21:51:38 +0000 (UTC)
Message-ID: <953223482.1307948.1524779498993@mail.yahoo.com> (raw)
In-Reply-To: <54026c40-5df5-3136-c041-b41fc2010934@dream.email.ne.jp>
References: <1441476371.947853.1524712577982.ref@mail.yahoo.com>
	<1441476371.947853.1524712577982@mail.yahoo.com>
	<54026c40-5df5-3136-c041-b41fc2010934@dream.email.ne.jp>

 Hello Hiroshi,
Thanks for reply, Is there any web link where I can follow up or check and use new driver when available ?
Thanks,Mahesh K
    On Thursday, 26 April, 2018, 2:47:40 PM GMT-7, Inoue, Hiroshi <h-inoue@dream.email.ne.jp> wrote:  
 
  Hi Mahesh,
 
 On 2018/04/26 12:16, Mahesh Kansara wrote:
  
  Hello Team, 
  My name is Mahesh and I am working with one application where we are connecting with PostgreSQL 10 database using PostgreSQL driver.  
  Application is basically trying to get list of tables from target but not returning Partition tables information.  The query which PostgreSQL driver is generating is below. 
   select relname, nspname, relkind from pg_catalog.pg_class c, pg_catalog.pg_namespace n where relkind in ('r', 'v') and nspname like 'myschema' and relname like 'mytable' and nspname not in ('pg_catalog', 'information_schema', 'pg_toast', 'pg_temp_1') and n.oid = relnamespace order by nspname, relname 
  If I run this query directly on target it doesn't list partition table. If i change this query to something like below it works. 
  select relname, nspname, relkind from pg_catalog.pg_class c, pg_catalog.pg_namespace n where relkind in ('r', 'v', 'p') and nspname like  'myschema' and relname like 'mytable' and nspname not in ('pg_catalog', 'information_schema', 'pg_toast', 'pg_temp_1') and n.oid = relnamespace order by nspname, relname
    
 
 I would take care of this issue.
 
 Thanks.
 Hiroshi Inoue
 
 
   
  I was looking at latest PostgreSQL driver  psqlodbc-10.02.0000 I am not seeing any code file which returns partition table.  
  Can you please share some more information on how to get partition tables using PostgreSQL driver. 
  Please let me know if you need more information.  
  Thanks, Mahesh K
   
   

view thread (10+ messages)  latest in thread

Message-ID: <953223482.1307948.1524779498993@mail.yahoo.com>
Permalink:  ../953223482.1307948.1524779498993@mail.yahoo.com/
Also on:    postgresql.org/message-id/953223482.1307948.1524779498993@mail.yahoo.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-odbc@postgresql.org
  Cc: mahesh_kansara@yahoo.com, h-inoue@dream.email.ne.jp
  Subject: Re: PostgreSQL 10 Partition Tables: Support through PG Driver
  In-Reply-To: <953223482.1307948.1524779498993@mail.yahoo.com>
  References: <1441476371.947853.1524712577982.ref@mail.yahoo.com> <1441476371.947853.1524712577982@mail.yahoo.com> <54026c40-5df5-3136-c041-b41fc2010934@dream.email.ne.jp> <953223482.1307948.1524779498993@mail.yahoo.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