Re: BUG #3641: Concat fails in update - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #3641: Concat fails in update
Date
Msg-id 46FCE7B6.EE98.0025.0@wicourts.gov
Whole thread Raw
In response to BUG #3641: Concat fails in update  ("Curt" <kurt@net2business.com>)
List pgsql-bugs
>>> On Fri, Sep 28, 2007 at  8:39 AM, in message
<200709281339.l8SDdIxj002744@wwwmaster.postgresql.org>, "Curt"
<kurt@net2business.com> wrote:=20
=20
> UPDATE table content=3Dcontent || 'constant' where idx=3D101;
>=20
> Content field is overwritten with 'constant'.
=20
test=3D> create temp table t1 (idx int not null primary key, content text);
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t1_pkey" fo=
r table "t1"
CREATE TABLE
test=3D> insert into t1 values (1, 'one');
INSERT 0 1
test=3D> update t1 set content =3D content || ' and a half' where idx =3D 1;
UPDATE 1
test=3D> select * from t1;
 idx |    content
-----+----------------
   1 | one and a half
(1 row)

test=3D> select version();
                                       version
---------------------------------------------------------------------------=
----------
 PostgreSQL 8.2.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.3 (Su=
SE Linux)
(1 row)
=20
Please show something similar from your environment.
=20
-Kevin
=20

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #3640: PANIC: ERRORDATA_STACK_SIZE exceeded
Next
From: "Arley Wilches Marcelo"
Date:
Subject: BUG #3642: Tiempos de consultas diferentes