Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjGhA-0001vi-1R for pgsql-odbc@arkaria.postgresql.org; Wed, 29 Oct 2014 00:01:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XjGh9-0008NM-Hi for pgsql-odbc@arkaria.postgresql.org; Wed, 29 Oct 2014 00:00:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XjGh8-0008L5-Fy for pgsql-odbc@postgresql.org; Wed, 29 Oct 2014 00:00:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XjGh4-0008KB-Vr for pgsql-odbc@postgresql.org; Wed, 29 Oct 2014 00:00:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s9T00pTK021806; Tue, 28 Oct 2014 20:00:51 -0400 From: Tom Lane To: Michael Paquier cc: rohtodeveloper , "pgsql-odbc@postgresql.org" Subject: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. In-reply-to: References: <3692B3C3C5EFEF4E87878CD096A0768C194858@G08CNEXMBPEKD02.g08.fujitsu.local> Comments: In-reply-to Michael Paquier message dated "Wed, 29 Oct 2014 08:37:28 +0900" Date: Tue, 28 Oct 2014 20:00:51 -0400 Message-ID: <21805.1414540851@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 Michael Paquier writes: > On Wed, Oct 29, 2014 at 2:35 AM, rohtodeveloper >> That's because the odbc_fdw will also call the odbc driver. >> The follow pictures explain the situation. > Ah, right, I completely forgot this fdw. Yeah it may be worth renaming that > in the odbc driver... Inoue-san, Saito-san, Heikki, thoughts about the > simple patch attached? check_client_encoding is used to extract an encoding > name from the connection settings. Perhaps we could do better than that. It's totally unmaintainable to expect that no global names inside the backend will ever accidentally match global names in loaded modules. What we need to be thinking about is why the linker is resolving the name wrong and how that can be fixed. I'm inclined to think that this report indicates a poor choice of link options while building the ODBC library. regards, tom lane -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc