changing partial data - Mailing list pgsql-general

From Peter Choe
Subject changing partial data
Date
Msg-id 3B4C9151.1B46EA8C@mindspring.com
Whole thread Raw
Responses Re: changing partial data
List pgsql-general
is there a way in postgres to change just a part of a text data in a
column.  for example if i have a column called description with the
following data:

+---------------------+
| description         |
+---------------------+
| this is a test.     |
+---------------------+

and i want to change the word test to exam, can i just replace the word
test rather than reentrying to who value of the column?

so, instead of:

update foo set description='this is a exam' where description='this is a
test';

can i do something like:

update foo replace test with exam;

peter choe

pgsql-general by date:

Previous
From: "Thalis A. Kalfigopoulos"
Date:
Subject: Re: Set priority for requests
Next
From: "Steve Wolfe"
Date:
Subject: Re: Performance tuning for linux, 1GB RAM, dual CPU?