pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedThis may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
12+ messages / 5 participants
[nested] [flat]
* This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
@ 2014-10-20 11:56 rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` 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>
0 siblings, 1 reply; 12+ messages in thread
From: rohtodeveloper @ 2014-10-20 11:56 UTC (permalink / raw)
To: pgsql-odbc
Dear all,
I found a problem in the odbc driver on linux platfrom.
Inside the odbc driver,there is a function called check_client_encoding() ,however,there is also a function which has the same name inside the postgres.
once the two functions are in the same process, problems may occur,because the system may choose the wrong function to execute.
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.
The follow picture explain the situation.
The declaration of the two functions are as follows:
➀ UCHAR *check_client_encoding(const UCHAR *sql_string);
② bool check_client_encoding(char **newval, void **extra, GucSource source);
I want to call the odbc's function "check_client_encoding",however it calls the postgres's function "check_client_encoding".
I think this probably is a bug.
Call you help me with this problem?
Thank you so much!
Attachments:
image001.gif (image/gif, 6.7K) download
view image
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
@ 2014-10-20 12:06 ` Michael Paquier <michael.paquier@gmail.com>
2014-10-28 17:35 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
0 siblings, 1 reply; 12+ messages in thread
From: Michael Paquier @ 2014-10-20 12:06 UTC (permalink / raw)
To: rohtodeveloper <rohtodeveloper@outlook.com>; +Cc: pgsql-odbc
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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` 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>
@ 2014-10-28 17:35 ` rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-28 17:49 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-28 23:37 ` 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>
0 siblings, 2 replies; 12+ messages in thread
From: rohtodeveloper @ 2014-10-28 17:35 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: 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. 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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` 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>
2014-10-28 17:35 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
@ 2014-10-28 17:49 ` rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-29 03:32 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. Inoue, Hiroshi <inoue@tpf.co.jp>
1 sibling, 1 reply; 12+ messages in thread
From: rohtodeveloper @ 2014-10-28 17:49 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-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) download
view image
pic02.png (image/png, 31.9K) download
view image
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` 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>
2014-10-28 17:35 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-28 17:49 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
@ 2014-10-29 03:32 ` Inoue, Hiroshi <inoue@tpf.co.jp>
2014-10-29 09:02 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. Inoue, Hiroshi <inoue@tpf.co.jp>
0 siblings, 1 reply; 12+ messages in thread
From: Inoue, Hiroshi @ 2014-10-29 03:32 UTC (permalink / raw)
To: rohtodeveloper <rohtodeveloper@outlook.com>; +Cc: Michael Paquier <michael.paquier@gmail.com>; pgsql-odbc
(2014/10/29 2:49), rohtodeveloper wrote:
> 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.
Which check_client_encoding() call causes the crash?
regards,
Hiroshi Inoue
--
I am using the free version of SPAMfighter.
SPAMfighter has removed 12846 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` 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>
2014-10-28 17:35 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-28 17:49 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-29 03:32 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. Inoue, Hiroshi <inoue@tpf.co.jp>
@ 2014-10-29 09:02 ` Inoue, Hiroshi <inoue@tpf.co.jp>
2014-10-30 03:00 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. Inoue, Hiroshi <inoue@tpf.co.jp>
0 siblings, 1 reply; 12+ messages in thread
From: Inoue, Hiroshi @ 2014-10-29 09:02 UTC (permalink / raw)
To: rohtodeveloper <rohtodeveloper@outlook.com>; +Cc: Michael Paquier <michael.paquier@gmail.com>; pgsql-odbc
(2014/10/29 12:32), Inoue, Hiroshi wrote:
> (2014/10/29 2:49), rohtodeveloper wrote:
>> 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.
>
> Which check_client_encoding() call causes the crash?
Oops I missed your anothe post.
OK check_client_encoding() in the driver causes the crash.
Currently all global symbols in the driver are exported.
Exporting only ODBC APIs may solve the problem.
regards,
Hiroshi Inoue
--
I am using the free version of SPAMfighter.
SPAMfighter has removed 12846 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` 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>
2014-10-28 17:35 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-28 17:49 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-29 03:32 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. Inoue, Hiroshi <inoue@tpf.co.jp>
2014-10-29 09:02 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. Inoue, Hiroshi <inoue@tpf.co.jp>
@ 2014-10-30 03:00 ` Inoue, Hiroshi <inoue@tpf.co.jp>
0 siblings, 0 replies; 12+ messages in thread
From: Inoue, Hiroshi @ 2014-10-30 03:00 UTC (permalink / raw)
To: rohtodeveloper <rohtodeveloper@outlook.com>; +Cc: Michael Paquier <michael.paquier@gmail.com>; pgsql-odbc
(2014/10/29 18:02), Inoue, Hiroshi wrote:
> (2014/10/29 12:32), Inoue, Hiroshi wrote:
>> (2014/10/29 2:49), rohtodeveloper wrote:
>>> 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.
>>
>> Which check_client_encoding() call causes the crash?
>
> Oops I missed your anothe post.
> OK check_client_encoding() in the driver causes the crash.
> Currently all global symbols in the driver are exported.
> Exporting only ODBC APIs may solve the problem.
Possibly attached patch for Makefile.am fixes the problem.
Autoreconf, configure, make and make install are needed.
Could you try it?
regards,
Hiroshi Inoue
--
I am using the free version of SPAMfighter.
SPAMfighter has removed 12852 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Attachments:
symbols_conflict.patch (text/x-patch, 391B) download
diff --git a/Makefile.am b/Makefile.am
index c436265..8641327 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,7 +14,7 @@ else
lib_LTLIBRARIES = psqlodbca.la
endif
-AM_LDFLAGS = -module -no-undefined -avoid-version
+AM_LDFLAGS = -module -no-undefined -avoid-version -export-symbols-regex '^SQL'
psqlodbca_la_SOURCES = \
info.c bind.c columninfo.c connection.c convert.c drvconn.c \
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` 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>
2014-10-28 17:35 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
@ 2014-10-28 23:37 ` Michael Paquier <michael.paquier@gmail.com>
2014-10-29 00:00 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 1 reply; 12+ messages in thread
From: Michael Paquier @ 2014-10-28 23:37 UTC (permalink / raw)
To: rohtodeveloper <rohtodeveloper@outlook.com>; +Cc: pgsql-odbc
On Wed, Oct 29, 2014 at 2:35 AM, rohtodeveloper <rohtodeveloper@outlook.com>
wrote:
> 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.
>
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.
--
Michael
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Attachments:
20141029_pgodbc_rename_check_encoding.patch (text/x-patch, 2.0K) download
diff --git a/connection.c b/connection.c
index af985f2..61dbdb5 100644
--- a/connection.c
+++ b/connection.c
@@ -1497,12 +1497,12 @@ static char CC_initial_log(ConnectionClass *self, const char *func)
ci->drivers.bools_as_char,
TABLE_NAME_STORAGE_LEN);
- encoding = check_client_encoding(ci->conn_settings);
+ encoding = pg_check_client_encoding(ci->conn_settings);
if (encoding)
self->original_client_encoding = encoding;
else
{
- encoding = check_client_encoding(ci->drivers.conn_settings);
+ encoding = pg_check_client_encoding(ci->drivers.conn_settings);
if (encoding)
self->original_client_encoding = encoding;
}
diff --git a/dlg_specific.c b/dlg_specific.c
index cf6852b..3700a2e 100644
--- a/dlg_specific.c
+++ b/dlg_specific.c
@@ -1152,7 +1152,7 @@ getDSNinfo(ConnInfo *ci, char overwrite)
if (get_qlog())
{
- char *enc = (char *) check_client_encoding(ci->conn_settings);
+ char *enc = (char *) pg_check_client_encoding(ci->conn_settings);
qlog(" conn_settings='%s', conn_encoding='%s'\n", ci->conn_settings,
NULL != enc ? enc : "(null)");
diff --git a/multibyte.c b/multibyte.c
index 2f7b594..0be7a0b 100644
--- a/multibyte.c
+++ b/multibyte.c
@@ -108,7 +108,7 @@ pg_CS_code(const char *characterset_string)
}
char *
-check_client_encoding(const pgNAME conn_settings)
+pg_check_client_encoding(const pgNAME conn_settings)
{
const char *cptr, *sptr = NULL;
char *rptr;
diff --git a/multibyte.h b/multibyte.h
index 73fb3a8..f4100dc 100644
--- a/multibyte.h
+++ b/multibyte.h
@@ -82,6 +82,5 @@ void encoded_str_constr(encoded_str *encstr, int ccsc, const char *str);
extern int encoded_nextchar(encoded_str *encstr);
extern ssize_t encoded_position_shift(encoded_str *encstr, size_t shift);
extern int encoded_byte_check(encoded_str *encstr, size_t abspos);
-/* #define check_client_encoding(X) pg_CS_name(pg_CS_code(X)) */
-char *check_client_encoding(const pgNAME sql_string);
+extern char *pg_check_client_encoding(const pgNAME sql_string);
#endif /* __MULTIBUYTE_H__ */
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` 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>
2014-10-28 17:35 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-28 23:37 ` 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>
@ 2014-10-29 00:00 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 12+ messages in thread
From: Tom Lane @ 2014-10-29 00:00 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: rohtodeveloper <rohtodeveloper@outlook.com>; pgsql-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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
@ 2014-11-03 06:52 Michael Paquier <michael.paquier@gmail.com>
2014-11-13 07:09 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. developer rohto <rohtodeveloper@outlook.com>
0 siblings, 1 reply; 12+ messages in thread
From: Michael Paquier @ 2014-11-03 06:52 UTC (permalink / raw)
To: developer rohto <rohtodeveloper@outlook.com>; +Cc: Inoue, Hiroshi <inoue@tpf.co.jp>; pgsql-odbc
On Mon, Nov 3, 2014 at 3:26 PM, developer rohto <rohtodeveloper@outlook.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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-11-03 06:52 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>
@ 2014-11-13 07:09 ` developer rohto <rohtodeveloper@outlook.com>
2014-11-25 15:19 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. developer rohto <rohtodeveloper@outlook.com>
0 siblings, 1 reply; 12+ messages in thread
From: developer rohto @ 2014-11-13 07:09 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Inoue, Hiroshi <inoue@tpf.co.jp>; pgsql-odbc
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.paquier@gmail.com
To: rohtodeveloper@outlook.com
CC: inoue@tpf.co.jp; pgsql-odbc@postgresql.org
On Mon, Nov 3, 2014 at 3:26 PM, developer rohto <rohtodeveloper@outlook.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
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
2014-11-03 06:52 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>
2014-11-13 07:09 ` Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. developer rohto <rohtodeveloper@outlook.com>
@ 2014-11-25 15:19 ` developer rohto <rohtodeveloper@outlook.com>
0 siblings, 0 replies; 12+ messages in thread
From: developer rohto @ 2014-11-25 15:19 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Inoue, Hiroshi <inoue@tpf.co.jp>; 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@outlook.com
To: michael.paquier@gmail.com
CC: inoue@tpf.co.jp; 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: 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.paquier@gmail.com
To: rohtodeveloper@outlook.com
CC: inoue@tpf.co.jp; pgsql-odbc@postgresql.org
On Mon, Nov 3, 2014 at 3:26 PM, developer rohto <rohtodeveloper@outlook.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
^ permalink raw reply [nested|flat] 12+ messages in thread
end of thread, other threads:[~2014-11-25 15:19 UTC | newest]
Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-10-20 11:56 This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-20 12:06 ` Michael Paquier <michael.paquier@gmail.com>
2014-10-28 17:35 ` rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-28 17:49 ` rohtodeveloper <rohtodeveloper@outlook.com>
2014-10-29 03:32 ` Inoue, Hiroshi <inoue@tpf.co.jp>
2014-10-29 09:02 ` Inoue, Hiroshi <inoue@tpf.co.jp>
2014-10-30 03:00 ` Inoue, Hiroshi <inoue@tpf.co.jp>
2014-10-28 23:37 ` Michael Paquier <michael.paquier@gmail.com>
2014-10-29 00:00 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-11-03 06:52 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>
2014-11-13 07:09 ` developer rohto <rohtodeveloper@outlook.com>
2014-11-25 15:19 ` developer rohto <rohtodeveloper@outlook.com>
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