Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.

From: developer rohto <rohtodeveloper(at)outlook(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: "Inoue, Hiroshi" <inoue(at)tpf(dot)co(dot)jp>, PostgreSQL mailing lists <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
Date: 2014-11-25 15:19:46
Message-ID: BAY178-W1994AB978B10070DAF58CCC4730@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Dear Michael, Inoue
Thanks very much.Postgres process still crash after solution2(symbols_conflict.patch) applied. So the other solution(solution1(20141029_pgodbc_rename_check_encoding.patch)) was perfered.Right?
regards,developer rohto
From: rohtodeveloper(at)outlook(dot)com
To: michael(dot)paquier(at)gmail(dot)com
CC: inoue(at)tpf(dot)co(dot)jp; pgsql-odbc(at)postgresql(dot)org
Subject: RE: [ODBC] This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
Date: Thu, 13 Nov 2014 07:09:50 +0000

I think the solution2(symbols_conflict.patch) may not be able to solve the problem。 The solution2 is trying to make the odbc’s check_client_encoding() function into a local function. However, the postgres's check_client_encoding() function is still a global function. When the odbc driver is trying to call the check_client_encoding() function, while the postgres's check_client_encoding() function is still being exposed , the postgres's check_client_encoding() may still have a chance to be called by the odbc driver ,and cause the postgres process to crash.
Date: Mon, 3 Nov 2014 15:52:06 +0900
Subject: Re: Re: [ODBC] This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
From: michael(dot)paquier(at)gmail(dot)com
To: rohtodeveloper(at)outlook(dot)com
CC: inoue(at)tpf(dot)co(dot)jp; pgsql-odbc(at)postgresql(dot)org

On Mon, Nov 3, 2014 at 3:26 PM, developer rohto <rohtodeveloper(at)outlook(dot)com> wrote:
Thanks very much.

We decide to use your solution1(20141029_pgodbc_rename_check_encoding.patch).

On the other hand, by the way, which solution does the community prefer to choose?
The potential solution by Inoue-san to reduce dependencies between library objects is better.
--
Michael

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message developer rohto 2014-11-26 15:01:25 Pgodbc is thread safe?
Previous Message Pavel Raiskup 2014-11-18 14:25:38 Re: psqlODBC 09.03.0400 Released