Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBcmA-0006Px-Cx for pgsql-odbc@arkaria.postgresql.org; Thu, 26 Apr 2018 09:01:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fBcm7-0000Cj-Fn for pgsql-odbc@arkaria.postgresql.org; Thu, 26 Apr 2018 09:01:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBXOY-0005cb-EQ for pgsql-odbc@lists.postgresql.org; Thu, 26 Apr 2018 03:16:30 +0000 Received: from sonic308-21.consmr.mail.sg3.yahoo.com ([106.10.241.211]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBXOV-0005f5-DY for pgsql-odbc@postgresql.org; Thu, 26 Apr 2018 03:16:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1524712583; bh=m+tQPRpBJT5vavCJzu+WEg7TGlFynF6zmEu799ZO/CY=; h=Date:From:To:Subject:References:From:Subject; b=VgWG/GAnmOYwJy0XNJlGjeUc2dCex3Sig1lD+qPGSzecDzjCN2We1nJ+8nuQ9KjIIvbisA5AbScDx0wkJ9sXO2NztLHfs5AhJWYIMBIw8nZYtn5uvgdJmQ/JyONMNnGYeBaggCqMZloVPg87F5oCuGhVlLYQMZnsjP8DhBEq2i4P6LQ84B9viMzLfLi4RZGooLdk/6QY9fslKo65m7zvoVLjBHU9xEphAzPBjgjuZcgF3X/9kZVauLxhRzAIqKi29mS4TKlSHlf9Ebn5VhWPdF2siqv6+e99au5v0ghyiIVpBuctDrDPh+TivvdVgTctl4HtA9IezpSmJHseTfwApg== X-YMail-OSG: pAO4OEUVM1nSkTmF98UwQ3Hm4UfWFOyCCThDzlD.3vhWyklNgjd3xPHPQuuQ7g6 M0VlO96RV_.DF8TKVr.JpLYdM6wwPjsDiwS9UABJzpDE3Zgd3C_SpLoaqxBbLH.kJEb3ALoVQeW4 rKUdbXmZ7z1yeVis90BIjK6SsaaxQN5cG6isuNn5tfQm1Sw4WvM7ojFcIZPi450peRhAzLY1RriH V6nDCeu5.pb8PnLqhO5KZiI63b.nI6bHK8vpyMJmIyw.eJUvAnssGo2xfSiNg.wb38yWRYO.gecB F792icIv4uuzaWzJScscc1Yd24ABIjIyMiUgjRgRCVAZiRugN01XfgNHHZUOeRnY1XNdCHZ_hsOn W3QMPsAzBV_QfpenAaG9plo8XvzWHLWLk9NhP3AC5WhNCyvQhpZ_fpetc4WK0cNHLdSpHjaq7H.e XTcoFXbS9OOkgK2xuIhx1Fq.Q.mOL4tjbzYhmBFXX6lZZKusc3zdNU9ENYg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.sg3.yahoo.com with HTTP; Thu, 26 Apr 2018 03:16:23 +0000 Date: Thu, 26 Apr 2018 03:16:17 +0000 (UTC) From: Mahesh Kansara To: "pgsql-odbc@postgresql.org" Message-ID: <1441476371.947853.1524712577982@mail.yahoo.com> Subject: PostgreSQL 10 Partition Tables: Support through PG Driver MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_947852_666801046.1524712577980" References: <1441476371.947853.1524712577982.ref@mail.yahoo.com> X-Mailer: WebService/1.1.11819 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Content-Length: 3937 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_947852_666801046.1524712577980 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Team, My name is Mahesh and I am working with one application where we are connec= ting with PostgreSQL 10 database using PostgreSQL driver.=C2=A0 Application is basically trying to get list of tables from target but not r= eturning Partition tables information.=C2=A0 The query which PostgreSQL dri= ver 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 rel= name like 'mytable' and nspname not in ('pg_catalog', 'information_schema',= 'pg_toast', 'pg_temp_1') and n.oid =3D relnamespace order by nspname, reln= ame 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' an= d relname like 'mytable' and nspname not in ('pg_catalog', 'information_sch= ema', 'pg_toast', 'pg_temp_1') and n.oid =3D relnamespace order by nspname,= relname I was looking at latest PostgreSQL driver=C2=A0=C2=A0psqlodbc-10.02.0000 I = am not seeing any code file which returns partition=C2=A0table. Can you please share some more information on how to get partition tables u= sing PostgreSQL driver. Please let me know if you need more information.=C2=A0 Thanks,Mahesh K ------=_Part_947852_666801046.1524712577980 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello Team,

=
My name is Mahesh and I am working with one application where we are c= onnecting with PostgreSQL 10 database using PostgreSQL driver. 
<= div>
Application is basically trying to get list of tables fr= om target but not returning Partition tables information.  The query w= hich PostgreSQL driver is generating is below.

select relname, nspname, relkind f= rom 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 no= t in ('pg_catalog', 'information_schema', 'pg_toast', 'pg_temp_1') and n.oi= d =3D relnamespace order by nspname, relname

select relname, nspname, relkind from pg_catalog.pg_class c, pg_c= atalog.pg_namespace n where relkind in ('r', 'v', 'p') and nspname like 'my= schema' and relname like 'mytable' and nspname not in ('pg_catalog', 'infor= mation_schema', 'pg_toast', 'pg_temp_1') and n.oid =3D relnamespace order b= y nspname, relname

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 infor= mation on how to get partition tables using PostgreSQL driver.
Please let me know if you need more information. 

Thanks,
Mahesh K
------=_Part_947852_666801046.1524712577980--