possible replace() bug - postgres 7.3.1 - Mailing list pgsql-hackers

From Ryan Mahoney
Subject possible replace() bug - postgres 7.3.1
Date
Msg-id 1068152635.1091.103.camel@localhost.localdomain
Whole thread Raw
Responses Re: possible replace() bug - postgres 7.3.1
List pgsql-hackers
I am running PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96

the following query fails:

SELECT 'UPDATE pa_sales_lead SET details = COALESCE(details, \'\') ||
\'' || replace(data, '\'', '\'\'') || '\' WHERE foreign_sales_lead_id =
\'' || id || '\';' FROM temp_sales_lead ORDER BY id, row LIMIT 10;

with the error:

ERROR:  repalloc: invalid request size 1073741824

but, the following query (without replace):
SELECT 'UPDATE pa_sales_lead SET details = COALESCE(details, \'\') ||
\'' || data || '\' WHERE foreign_sales_lead_id = \'' || id || '\';' FROM
temp_sales_lead ORDER BY id, row LIMIT 10;

works just fine, producing output like:

UPDATE pa_sales_lead SET details = COALESCE(details, '') || 'EMPLOY: 50'
WHERE foreign_sales_lead_id = '10000004';

any ideas?

-r


On Thu, 2003-11-06 at 12:52, Carlos wrote:
> Hello Forum,
> 
> Could someone please send me the link and the names of the files to
> install the version 7.4 in Windows 2000 server and XP Pro?  I cannot
> discern the files that one is supposed to download..
> 
> Thanks in advance for your response.
> 
> Carlos Oliva
> Senior Programmer/Analyst
> Positive Business Solutions, Inc.
> Cincinnati, OH 45240-1640
> (513) 772 - 2255 ext 129
> carlos@pbsinet.com
> Yahoo ID: ramboid_1997
-- 
Ryan Mahoney <ryan@paymentalliance.net>



pgsql-hackers by date:

Previous
From: "Andreas Grabmüller"
Date:
Subject: Re: [pgsql-www] Changes to Contributor List
Next
From: Ryan Mahoney
Date:
Subject: Re: [pgsql-advocacy] Changes to Contributor List