From: rohtodeveloper <rohtodeveloper@outlook.com>
To: Michael Paquier <michael.paquier@gmail.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 17:49:07 +0000
Message-ID: <BAY178-W42F12DB78E7FD290B68B9EC49F0@phx.gbl> (raw)
In-Reply-To: <BAY178-W2406B54411B6CBBF488D1C49F0@phx.gbl>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
I'm so sorry, it seems that there was something wrong with the pictures in my last letter.
Here I send the mail again with the correct pictures:
Thanks a lot for your answer. Well ,in fact, if I use the extension called odbc_fdw , the same problem will happen.That’s because the odbc_fdw will also call the odbc driver.The follow pictures explain the situation. When use the odbc_fdw extension, the libraries are loaded in the following way. After all the libraries are loaded, When the function check_client_encoding is called , the whole postgres process will crash , result in a core dumped problem.
Best Regards,
rohtodeveloper
From: rohtodeveloper@outlook.com
To: michael.paquier@gmail.com
CC: pgsql-odbc@postgresql.org
Subject: RE: [ODBC] This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
Date: Tue, 28 Oct 2014 17:35:48 +0000
Thanks a lot for your answer. Well ,in fact, if I use the extension called odbc_fdw , the same problem will happen.That’s because the odbc_fdw will also call the odbc driver.The follow pictures explain the situation. When use the odbc_fdw extension, the libraries are loaded in the following way. After all the libraries are loaded, When the function check_client_encoding is called , the whole postgres process will crash , result in a core dumped problem. Best Regards, rohtodeveloper
Date: Mon, 20 Oct 2014 21:06:24 +0900
Subject: Re: [ODBC] This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
From: michael.paquier@gmail.com
To: rohtodeveloper@outlook.com
CC: pgsql-odbc@postgresql.org
On Mon, Oct 20, 2014 at 8:56 PM, rohtodeveloper <rohtodeveloper@outlook.com> wrote:
If I create a postgres's FUNCTION(myfunc()) using C language,and use this FUNCTION
to call the odbc driver(psqlodbcw.so),this problem may happen.
Why would you want to do that? ODBC driver should run as a client process and should not need to interact in any way with a Postgres server process, aka an internal session of the instance.
--
Michael
Attachments:pic01.png (image/png, 40.1K) downloadview imagepic02.png (image/png, 31.9K) downloadview image
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: rohtodeveloper@outlook.com, michael.paquier@gmail.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: <BAY178-W42F12DB78E7FD290B68B9EC49F0@phx.gbl>
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> <BAY178-W42F12DB78E7FD290B68B9EC49F0@phx.gbl>
* 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