Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6Fux-0001hi-Ue for pgsql-odbc@arkaria.postgresql.org; Fri, 27 May 2016 11:27:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6Fux-00022s-HF for pgsql-odbc@arkaria.postgresql.org; Fri, 27 May 2016 11:27:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6Fua-0001dm-FJ for pgsql-odbc@postgresql.org; Fri, 27 May 2016 11:26:40 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6FuQ-0002ia-Q2 for pgsql-odbc@postgresql.org; Fri, 27 May 2016 11:26:39 +0000 Received: from [192.168.1.3] (h216161.dynamic.ppp.asahi-net.or.jp [61.114.216.161]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id F37B917FA4; Fri, 27 May 2016 20:26:26 +0900 (JST) Subject: Re: PostgreSQL: SQLSetPos fails with SetPos update return error. To: "Venkatesan, Sekhar" References: <5715FD3C.5020103@dream.email.ne.jp> <0A3221C70F24FB45833433255569204D1F563F26@G01JPEXMBYT05> <0A3221C70F24FB45833433255569204D1F5640C5@G01JPEXMBYT05> <0A3221C70F24FB45833433255569204D1F573047@G01JPEXMBYT05> <573B10D9.1060403@dream.email.ne.jp> <573C5E11.2090106@dream.email.ne.jp> <573EF4FA.4050407@dream.email.ne.jp> <0A3221C70F24FB45833433255569204D1F5784A9@G01JPEXMBYT05> <0A3221C70F24FB45833433255569204D1F5786E4@G01JPEXMBYT05> Cc: "Tsunakawa, Takayuki" , Adrian Klaver , "Joshua D. Drake" , "pgsql-odbc@postgresql.org" From: "Inoue, Hiroshi" Message-ID: <57482EE4.6010603@dream.email.ne.jp> Date: Fri, 27 May 2016 20:26:28 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------040500030003070006060302" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --------------040500030003070006060302 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I just pushed the change about inheritance to git. regards, Hiroshi Inoue On 2016/05/25 15:02, Venkatesan, Sekhar wrote: > > Inoue, > > Can you please let me know if a fix can be provided for the “SetPos > Update” issue. I need it for Linux and Windows? > > Thanks, > Sekhar > > *From:*Venkatesan, Sekhar > *Sent:* Wednesday, May 25, 2016 11:04 AM > *To:* 'Tsunakawa, Takayuki' > *Cc:* Inoue, Hiroshi; Adrian Klaver; Joshua D. Drake; > pgsql-odbc@postgresql.org > *Subject:* RE: [ODBC] PostgreSQL: SQLSetPos fails with SetPos update > return error. > > Hi Takayuki/ Inoue, > > When partition is enabled in my application and I change the > partitioning key in the table to save the new data into another > partition, I get error like this: > > ERROR: new row for relation "testpart_s" violates check constraint " > p1_testpart12_s" > > *I enabled **constraint_exclusion in postgresql.conf.* > > I followed the document you shared to enable row movement across > partitions by writing triggers on partition tables. It works up to a > point but not confident it will work for all use-cases. > > If this can be fixed in the odbc driver itself, it would be better. > Let me know your thoughts on this. > > Thanks, > Sekhar > > *From:*Tsunakawa, Takayuki [mailto:tsunakawa.takay@jp.fujitsu.com] > *Sent:* Monday, May 23, 2016 1:18 PM > *To:* Venkatesan, Sekhar > *Cc:* Inoue, Hiroshi; Adrian Klaver; Joshua D. Drake; > pgsql-odbc@postgresql.org > *Subject:* RE: [ODBC] PostgreSQL: SQLSetPos fails with SetPos update > return error. > > From: pgsql-odbc-owner@postgresql.org > > [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Venkatesan, Sekhar > > The latest driver provided resolves the “SetPos update” error that you > guys mentioned. Thanks for the fix. > > That's good news. > > Is the fix provided an official and certified one? Can you also > provide the fix for Linux? > > Inoue-san is the only committer now and he will decide that. > > There is one another issue regarding partition’s automatic row > movement with regards to partitioning key change. This is not fixed. > > Let me know if it is feasible to fix that as well. > > As Inoue-san and I mentioned before, automatic row movement seems to > have nothing to do with your problem. Could you elaborate your test > case which fails? > > Regards > > Takayuki Tsunakawa > --------------040500030003070006060302 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit I just pushed the change about inheritance to git.

regards,
Hiroshi Inoue

On 2016/05/25 15:02, Venkatesan, Sekhar wrote:

Inoue,

 

Can you please let me know if a fix can be provided for the “SetPos Update” issue. I need it for Linux and Windows?

 

Thanks,
Sekhar

 

From: Venkatesan, Sekhar
Sent: Wednesday, May 25, 2016 11:04 AM
To: 'Tsunakawa, Takayuki'
Cc: Inoue, Hiroshi; Adrian Klaver; Joshua D. Drake; pgsql-odbc@postgresql.org
Subject: RE: [ODBC] PostgreSQL: SQLSetPos fails with SetPos update return error.

 

Hi Takayuki/ Inoue,

 

When partition is enabled in my application and I change the partitioning key in the table to save the new data into another partition, I get error like this:

 

ERROR: new row for relation "testpart_s" violates check constraint " p1_testpart12_s"

 

I enabled constraint_exclusion in postgresql.conf.

I followed the document you shared to enable row movement across partitions by writing triggers on partition tables. It works up to a point but not confident it will work for all use-cases.

If this can be fixed in the odbc driver itself, it would be better. Let me know your thoughts on this.

 

Thanks,
Sekhar

 

From: Tsunakawa, Takayuki [mailto:tsunakawa.takay@jp.fujitsu.com]
Sent: Monday, May 23, 2016 1:18 PM
To: Venkatesan, Sekhar
Cc: Inoue, Hiroshi; Adrian Klaver; Joshua D. Drake; pgsql-odbc@postgresql.org
Subject: RE: [ODBC] PostgreSQL: SQLSetPos fails with SetPos update return error.

 

From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Venkatesan, Sekhar

The latest driver provided resolves the “SetPos update” error that you guys mentioned. Thanks for the fix.

 

 

That's good news.

 

 

Is the fix provided an official and certified one? Can you also provide the fix for Linux?

 

 

Inoue-san is the only committer now and he will decide that.

 

 

There is one another issue regarding partition’s automatic row movement with regards to partitioning key change. This is not fixed.

Let me know if it is feasible to fix that as well.

 

 

As Inoue-san and I mentioned before, automatic row movement seems to have nothing to do with your problem.  Could you elaborate your test case which fails?

 

Regards

Takayuki Tsunakawa


--------------040500030003070006060302--