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 1fBoyN-0003iu-DE for pgsql-odbc@arkaria.postgresql.org; Thu, 26 Apr 2018 22:02:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fBoyM-00050A-BX for pgsql-odbc@arkaria.postgresql.org; Thu, 26 Apr 2018 22:02:38 +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 1fBont-0008Ob-5Y for pgsql-odbc@lists.postgresql.org; Thu, 26 Apr 2018 21:51:49 +0000 Received: from sonic311-23.consmr.mail.sg3.yahoo.com ([106.10.244.40]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBonp-0005iv-Jm for pgsql-odbc@postgresql.org; Thu, 26 Apr 2018 21:51:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1524779499; bh=x2I6/QOnNp9swIH5BW5zgrz7S8ao8smknjTO6b5HqDM=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=CKL1tsKsuymQnD8LlarCfyHPaiuH/9BTI69NKtYWocznFiPJpRQjFUfq28rBhTKB6hnBY6zoWxSj7g8S41/1veUSkMw867L/8OFrRg+RiLLRuF45tHpZXqJeK2vfpo6DinI/magwZ3MMjxuX9g+Dw6e760iZT0sklba956Qs9VEYxZiPwXrz8uIl9/224XugmCcR8JP9lFhngyKnAxt5zEhCJ5yJ5JJwLxAIAkfm+zIUn/OZcgEhPKbeGAiwHRxgMkZ2fRuB92Klr8ekEfwR+mo/IdVJIsNM+UCEOPeWfwc3sQbCq6k4oY+PsSi7NNjTpxZwiv4uleVlXbppPrLDyw== X-YMail-OSG: h4A.aF8VM1kWh1oEL9O234tekCbL3KrO0eLZ.ZTs9i27bkLN2gcfhHCoMEDnXhD 6TATy19Gxyp_RNJkVVg8YOn0BUQhUIexP8XI0whfFdrdDc4.DfDKMeAEEu7b4HudE.MsGXvDFBus yOL3ntRrhVsihmjOFhI169mDlTjph0mJasniEAoswrQ8u8PcmxnpsgVsAk67aThe8AnayIbVhcE1 cwF7T8TyDtZM2ukl742Yd0uRlj059DxfLPajrbeuzl.quOjRs3ZiwI3yOR_Hvg46sownbNjlAqEM NJo6p8JZLoNDtNKTcNMv03.ZiRbB2NAthk97yF2Udk2HlZEsuaLV9k4aHAzN82dF0riHYLPNWFk3 AhDK_bzpw2boArR2BntMbG3fq7KhFGPKfur8udPniwRQ.lZZBcsbamP2_Q53J7vE07ZTwsOZbz15 vscQ.lBUb980TuuliAqbVa5v45I9899vU4c4sDB_SyiWqHfz95nSluZm_va70.docAyARcilshpY cFE0Ym0mhq8suQ9hZA4LWqhoCSotOD_cudaqmHlKtxO6p0ZYSdc5G4tcodK5FTKmupZCLKaKEYEo toDUJPtyECM6x2LhBQQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.sg3.yahoo.com with HTTP; Thu, 26 Apr 2018 21:51:39 +0000 Date: Thu, 26 Apr 2018 21:51:38 +0000 (UTC) From: Mahesh Kansara To: "pgsql-odbc@postgresql.org" , "Inoue, Hiroshi" Message-ID: <953223482.1307948.1524779498993@mail.yahoo.com> 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> Subject: Re: PostgreSQL 10 Partition Tables: Support through PG Driver MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1307947_1395367826.1524779498990" 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: 6678 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1307947_1395367826.1524779498990 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 wrote: =20 =20 Hi Mahesh, =20 On 2018/04/26 12:16, Mahesh Kansara wrote: =20 Hello Team,=20 My name is Mahesh and I am working with one application where we are conn= ecting with PostgreSQL 10 database using PostgreSQL driver.=C2=A0=20 Application is basically trying to get list of tables from target but not= returning Partition tables information.=C2=A0 The query which PostgreSQL d= river is generating is below.=20 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_schem= a', 'pg_toast', 'pg_temp_1') and n.oid =3D relnamespace order by nspname, r= elname=20 If I run this query directly on target it doesn't list partition table. I= f i change this query to something like below it works.=20 select relname, nspname, relkind from pg_catalog.pg_class c, pg_catalog.p= g_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 =3D relnamespace order by nspna= me, relname =20 =20 I would take care of this issue. =20 Thanks. Hiroshi Inoue =20 =20 =20 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. =20 Can you please share some more information on how to get partition tables= using PostgreSQL driver.=20 Please let me know if you need more information.=C2=A0=20 Thanks, Mahesh K =20 =20 ------=_Part_1307947_1395367826.1524779498990 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
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
------=_Part_1307947_1395367826.1524779498990--