Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XlB5w-0002q6-Ks for pgsql-odbc@arkaria.postgresql.org; Mon, 03 Nov 2014 06:26:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XlB5v-0005Cy-A1 for pgsql-odbc@arkaria.postgresql.org; Mon, 03 Nov 2014 06:26:27 +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 1XlB5u-00058Y-51 for pgsql-odbc@postgresql.org; Mon, 03 Nov 2014 06:26:26 +0000 Received: from bay004-omc1s6.hotmail.com ([65.54.190.17]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XlB5p-0008H3-HI for pgsql-odbc@postgresql.org; Mon, 03 Nov 2014 06:26:23 +0000 Received: from BAY403-EAS95 ([65.54.190.61]) by BAY004-OMC1S6.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Sun, 2 Nov 2014 22:26:20 -0800 X-TMN: [JJjQQN2Jb9eAksBTX+XTooWT7n4QdHut] X-Originating-Email: [rohtodeveloper@outlook.com] Message-ID: Date: Mon, 3 Nov 2014 14:26:14 +0800 Subject: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A_Re:__This_may_be_?= =?UTF-8?Q?a_bug:_odbc's_function"check=5Fc?= =?UTF-8?Q?lient=5Fencoding"_have_the_same_name_with_postgres's_function.?= From: developer rohto To: "Inoue, Hiroshi" CC: Michael Paquier , MIME-Version: 1.0 Importance: normal Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-OriginalArrivalTime: 03 Nov 2014 06:26:20.0301 (UTC) FILETIME=[14E37BD0:01CFF72F] X-Pg-Spam-Score: -1.9 (-) 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 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? regards, rohtodeveloper --- =E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6 --- =E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A "Inoue, Hiroshi" =E5=B7=B2=E5=8F=91=EF=BC=9A 2014=E5=B9=B410=E6=9C=8830=E6=97=A5 =E4=B8=8A= =E5=8D=8811:00 =E6=94=B6=E4=BB=B6=E4=BA=BA=EF=BC=9A "rohtodeveloper" =E6=8A=84=E9=80=81=EF=BC=9A "Michael Paquier" , = pgsql-odbc@postgresql.org =E4=B8=BB=E9=A2=98=EF=BC=9A Re: [ODBC] This may be a bug: odbc's function"c= heck_client_encoding" have the same name with postgres's function. (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=E2=80=99s 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=3Dsigen --=20 Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc