From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: rohtodeveloper <rohtodeveloper@outlook.com>
Cc: pgsql-odbc@postgresql.org <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.
Date: Tue, 28 Oct 2014 20:00:51 -0400
Message-ID: <21805.1414540851@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqR9agJ9hV3CRZKtzwiXcBZcC1hNVoUFBnWWGjiB4bUTcw@mail.gmail.com>
References: <B360903EF4334A46996CD3253DAB94210103F90D@G08CNEXMBPEKD03.g08.fujitsu.local>
<3692B3C3C5EFEF4E87878CD096A0768C194858@G08CNEXMBPEKD02.g08.fujitsu.local>
<BAY178-W6C29D0852800F04648E1BC4970@phx.gbl>
<CAB7nPqT68xMJW-xAVE-qEC5Tw6WjApOeWAQQcx-7g5ztw99snQ@mail.gmail.com>
<BAY178-W2406B54411B6CBBF488D1C49F0@phx.gbl>
<CAB7nPqR9agJ9hV3CRZKtzwiXcBZcC1hNVoUFBnWWGjiB4bUTcw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Michael Paquier <michael.paquier@gmail.com> writes:
> On Wed, Oct 29, 2014 at 2:35 AM, rohtodeveloper <rohtodeveloper@outlook.com>
>> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, rohtodeveloper@outlook.com
Subject: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
In-Reply-To: <21805.1414540851@sss.pgh.pa.us>
References: <B360903EF4334A46996CD3253DAB94210103F90D@G08CNEXMBPEKD03.g08.fujitsu.local> <3692B3C3C5EFEF4E87878CD096A0768C194858@G08CNEXMBPEKD02.g08.fujitsu.local> <BAY178-W6C29D0852800F04648E1BC4970@phx.gbl> <CAB7nPqT68xMJW-xAVE-qEC5Tw6WjApOeWAQQcx-7g5ztw99snQ@mail.gmail.com> <BAY178-W2406B54411B6CBBF488D1C49F0@phx.gbl> <CAB7nPqR9agJ9hV3CRZKtzwiXcBZcC1hNVoUFBnWWGjiB4bUTcw@mail.gmail.com> <21805.1414540851@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox