test=# create table volkerf(id int primary key, t text);
CREATE TABLE
test=*# insert into volkerf values (1, 'http://domain_a/bild1');
INSERT 0 1
test=*# insert into volkerf values (2, 'http://domain_a/bild2');
INSERT 0 1
test=*# select * from volkerf ;
id | t
----+-----------------------
1 | http://domain_a/bild1
2 | http://domain_a/bild2
(2 Zeilen)
test=*# update volkerf set t = regexp_replace(t,'//domain_a/','//domain_b/');
UPDATE 2
test=*# select * from volkerf ;
id | t
----+-----------------------
1 | http://domain_b/bild1
2 | http://domain_b/bild2
(2 Zeilen)
test=*#