Re: BUG #5531: REGEXP_ REPLACE causes connection drop - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5531: REGEXP_ REPLACE causes connection drop
Date
Msg-id 11912.1277915132@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5531: REGEXP_ REPLACE causes connection drop  ("Ola Sergatchov" <ola_sergatchov@hotmail.com>)
List pgsql-bugs
"Ola Sergatchov" <ola_sergatchov@hotmail.com> writes:
> The following bug has been logged online:

> Bug reference:      5531
> Logged by:          Ola Sergatchov
> Email address:      ola_sergatchov@hotmail.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

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #5531: REGEXP_ REPLACE causes connection drop
Next
From: Tom Lane
Date:
Subject: Re: BUG #5532: Valid UTF8 sequence errors as invalid