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

Поиск
Список
Период
Сортировка
От rohtodeveloper
Тема Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
Дата
Msg-id BAY178-W2406B54411B6CBBF488D1C49F0@phx.gbl
обсуждение исходный текст
Ответ на Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.  (rohtodeveloper <rohtodeveloper@outlook.com>)
Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-odbc

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.

image003.png@01CFF29B.73455510

 

 

 

 

 

 

 

 

 

 

 

 

 

 

                                                                                                                                       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 languageand 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

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Keyur Govande
Дата:
Сообщение: Re: [BUGS] BUG #11767: ODBC driver bug when fetching constant string columns
Следующее
От: rohtodeveloper
Дата:
Сообщение: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.