Re: Server broken down in covering GB18030

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Server broken down in covering GB18030
Date: 2005-08-13 02:07:10
Message-ID: 200508130207.j7D27AE26736@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Has this been fixed already?

---------------------------------------------------------------------------

Qingqing Zhou wrote:
>
> My theory is "select;" incurs a parse error and this error message is
> supposed to be translated into your encoding, but unfortunately not every
> UTF8 character is necessarily be encoded as GB18030, which will cause an
> infinite recursive elogs just like this:
>
> 1:elog(parse_error) // contain unencodable characters
> 2: elog(report_not_translatable) // contain unencodable characters
> again
> 3: elog(report_report_not_translatable)
> 4: elog(report_report_report_not_translatable)
> 5: ...
>
> and corrupt the elog stack.
>
> To fix this, we could just print a "Unsupport encoding" message which is
> just a plain ascii character string and stop the recursion at step 3.
>
> Regards,
> Qingqing
>
> "" <yayooo(at)gmail(dot)com> writes
> > template1=# select version();
> > PostgreSQL 8.0.3 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC)
> > 3.4.2 (mingw-special)
> > template1=# create database test1 encoding 'unicode';
> > test1=# \encoding
> > UNICODE
> > test1=# \encoding gb18030
> > test1=# \encoding
> > GB18030
> > test1=# select;
> ...
> > : ERRORDATA_STACK_SIZE exceeded
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2005-08-13 02:43:26 Re: [BUGS] BUG #1815: ECPGdebug causes crash on Windows XP
Previous Message Bruce Momjian 2005-08-13 01:55:44 Re: [PATCHES] BUG #1794: inheritance removes permissions from