Re: BUG #5531: REGEXP_ REPLACE causes connection drop

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ola Sergatchov" <ola_sergatchov(at)hotmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5531: REGEXP_ REPLACE causes connection drop
Date: 2010-06-30 16:25:32
Message-ID: 11912.1277915132@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Ola Sergatchov" <ola_sergatchov(at)hotmail(dot)com> writes:
> The following bug has been logged online:

> Bug reference: 5531
> Logged by: Ola Sergatchov
> Email address: ola_sergatchov(at)hotmail(dot)com
> PostgreSQL version: 8.1.18
> Operating system: RedHat Linux 4.1.2-46
> Description: REGEXP_ REPLACE causes connection drop
> Details:

> Passing large string to REGEXP_REPLACE function causes the DB connection to
> drop. We executed this function with very large strings (20,000 - 250,000
> characters) both from RedHat and PgAdmin and in both cases the function
> fails to return and eventually the connection drops.

I don't see any such misbehavior here: it either completes or reports
"out of memory". Could we see a specific problematic example? Also
what sort of hardware are you on? (32-bit vs 64-bit seems relevant
in particular.)

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-06-30 16:44:45 Re: BUG #5532: Valid UTF8 sequence errors as invalid
Previous Message Bruce Momjian 2010-06-30 15:46:53 Re: BUG #5531: REGEXP_ REPLACE causes connection drop