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 1fC6lo-0001Xl-FX for pgsql-odbc@arkaria.postgresql.org; Fri, 27 Apr 2018 17:02:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fC6lm-00010A-Pt for pgsql-odbc@arkaria.postgresql.org; Fri, 27 Apr 2018 17:02:50 +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 1fC6ll-0000zy-LX for pgsql-odbc@lists.postgresql.org; Fri, 27 Apr 2018 17:02:50 +0000 Received: from sonic309-20.consmr.mail.sg3.yahoo.com ([106.10.244.83]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fC6lh-0007WJ-UH for pgsql-odbc@postgresql.org; Fri, 27 Apr 2018 17:02:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1524848560; bh=8QBY3ypEYtU8eFU7GHmEByCPukTXmeB0M4+xrF4SKks=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=PL4ufU0X4b1Yj7i1/KDfrK7KfLAGTM+Bqji9v6eKnnWyIIKk254r6fbBuKxazXpG5QyDa8aUr242ZPQq6Qj0s6/yooLGb/GoisJjB+5zofh/TYRO6Ec4YK+QLveWSAaGTUGZOW/nKA42oQA+ntlLKEeWXrnBVEMUDqPslaElSh/LDFppTXzA/O+vI8nRtHRkbQXJlc4S0ScgnWr0fCbLYCG6se9Ojxy51TCimq94Krw6Z6HwJXdHuuMijlO3lAwITp8xGa+14zcjYs3fILjxqXnqX9zzlW8or4T/XwuCgV9mrME9F8TJef6YFWmHJYrJJ6Jh8ACtT/ld59kGsowmjw== X-YMail-OSG: a7LutEIVM1ltmt5BgVzDgzi3idWtZnoFsne68qIzPbZKQjhhX7SiOUGRHy3wczT 8gZKdE8KCkBH1iK9FDtrVulfzY1kCFGKnDEIcChOF8t_TX7HlkTgFgU2oJRH3qotisjBPh24WNJ6 AmyE9LDDhzmTBDmHUroa4wGsz4YxRqjPVhHDkgRByYN4Bl6y9FdF3PyQPQ7gQMdO_xlbG7nkpCi0 JKMO.so5ejUMb4S4CkwySS3jdAHBvHYVE62mqvP_twSndlfEVTpBDn6xpQick_u.HV25hGBwYDc8 xHUeW2qxhhkuVNC8HTDAFXZKd3dq7RsCRlz.iWDfTA.s5ES7AqPEoUV5la0VyFF3pYF32rVaxOp7 K9aspJZifruqpM5hECS7EhXpyHdWRiOwG6_q6h30DjPgobOBVQC8jsnw0hDaL.eKD9PyixD8.NQt b291tDOKbdg3r8yAFa1WZ5YaUAPflNL_r_Do3dmIJQ0xynxkUlThMGXoE4Fc- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.sg3.yahoo.com with HTTP; Fri, 27 Apr 2018 17:02:40 +0000 Date: Fri, 27 Apr 2018 17:02:35 +0000 (UTC) From: Mahesh Kansara To: "Inoue, Hiroshi" Cc: "pgsql-odbc@postgresql.org" Message-ID: <635799638.1700455.1524848555899@mail.yahoo.com> In-Reply-To: <4af88a1b-c4a5-3cf9-7f23-5f46e4631535@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> <953223482.1307948.1524779498993@mail.yahoo.com> <4af88a1b-c4a5-3cf9-7f23-5f46e4631535@dream.email.ne.jp> Subject: Re: PostgreSQL 10 Partition Tables: Support through PG Driver MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1700454_447008973.1524848555895" 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: 10760 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1700454_447008973.1524848555895 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Hiroshi, Thanks for reply, I am using Linux ,x86_64 x86_64 x86_64 GNU/Linux. It woul= d be great help if you can give me test drivers. Thanks,Mahesh Kansara On Thursday, 26 April, 2018, 8:43:01 PM GMT-7, Inoue, Hiroshi wrote: =20 =20 Hi Mahesh, =20 On 2018/04/27 6:51, Mahesh Kansara wrote: =20 Hello Hiroshi,=20 Thanks for reply, Is there any web link where I can follow up or check an= d use new driver when available ? =20 =20 What kind of OS are you using? If you are using Windows, I can provide test drivers. =20 regards, Hiroshi Inoue =20 =20 =20 Thanks, Mahesh K=20 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_sche= ma', 'pg_toast', 'pg_temp_1') and n.oid =3D relnamespace order by nspname, = relname=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 nspn= ame, relname =20 =20 I would take care of this issue. =20 Thanks. Hiroshi Inoue=20 =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 =20 ------=_Part_1700454_447008973.1524848555895 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Hello Hiroshi,

Thanks for reply, I am using Linux ,x86_64 x86_64 x86_64 GNU/Linux. It would be great help if you can give me test drivers.

Thanks,
Mahesh Kansara

On Thursday, 26 April, 2018, 8:43:01 PM GMT-7, Inoue, Hiroshi <h-inoue@dream.email.ne.jp> wrote:


Hi Mahesh,

On 2018/04/27 6:51, Mahesh Kansara wrote:
Hello Hiroshi,

Thanks for reply, Is there any web link where I can follow up or check and use new driver when available ?

What kind of OS are you using?
If you are using Windows, I can provide test drivers.

regards,
Hiroshi Inoue



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_1700454_447008973.1524848555895--