Re: possible replace() bug - postgres 7.3.1

Lists: pgsql-generalpgsql-hackers
From: Carlos <Carlos(at)pbsinet(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Install files for version 7.4
Date: 2003-11-06 17:52:58
Message-ID: E148BE531B8AD311922E005004D3EEA10261678C@xchserver.pbsinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

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(at)pbsinet(dot)com
Yahoo ID: ramboid_1997


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Carlos <Carlos(at)pbsinet(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Install files for version 7.4
Date: 2003-11-06 18:10:36
Message-ID: Pine.LNX.4.44.0311061909430.29650-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Carlos writes:

> 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.

There is no version 7.4 yet. When it will be available, the release
announcement will contain instructions.

--
Peter Eisentraut peter_e(at)gmx(dot)net


From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Ryan Mahoney <ryan(at)paymentalliance(dot)net>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: possible replace() bug - postgres 7.3.1
Date: 2003-11-09 21:51:25
Message-ID: 1068414685.4486.1.camel@fuji.krosing.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Ryan Mahoney kirjutas N, 06.11.2003 kell 23:03:
> 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?

what does just

SELECT replace(data, '\'', '\'\'')
FROM temp_sales_lead
ORDER BY id, row LIMIT 10;

produce ?

----------------
Hannu


From: Joe Conway <mail(at)joeconway(dot)com>
To: Hannu Krosing <hannu(at)tm(dot)ee>
Cc: Ryan Mahoney <ryan(at)paymentalliance(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: possible replace() bug - postgres 7.3.1
Date: 2003-11-09 22:38:13
Message-ID: 3FAEC1D5.4090503@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Hannu Krosing wrote:
> Ryan Mahoney kirjutas N, 06.11.2003 kell 23:03:
>>I am running PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96
> what does just
>
> SELECT replace(data, '\'', '\'\'')
> FROM temp_sales_lead
> ORDER BY id, row LIMIT 10;
>
> produce ?

There was a bug in replace(), fixed by Tom in 7.3.3 I think (for sure by
7.3.4). If you have any embedded "%" characters in data, it would
trigger the bug. Try upgrading to 7.3.4.

HTH,

Joe