Re: regexp_replace failing on 9.0.4 - Mailing list pgsql-general

From Rob Sargentg
Subject Re: regexp_replace failing on 9.0.4
Date
Msg-id 5147E3B0.5030207@gmail.com
Whole thread Raw
In response to Re: regexp_replace failing on 9.0.4  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> Maybe we're barking up the wrong tree by suspecting the regex itself.
> Perhaps the updates were suppressed by a trigger, or the transaction
> rolled back instead of committing, or some such?
>
>             regards, tom lane
Barking mad, more like it.  I had rolled  back the execution of my
function in my dev env. and running again produces the same result as
experienced in production system.

Why the update of the text type field view regexp_replace is failing
still confuses me, but that's pretty much my natural state.  The size of
the text field ranges from 7.5k to 24k char.


Here is the update (again)
   update cms.segment_data s
   set text = regexp_replace(f.content,
'(^.*)ns/acres/pathology/dx/1.5(.*$)', E'\\1ns/acres/pathology/dx/1.6\\2')
   from
     dm.payload_segment p,
     support.fix_pathdx_namespace f
   where s.id  = p.segment_data_id
   and p.item_id = f.item_id
   and p.content_version = f.maxversion
   ;



pgsql-general by date:

Previous
From: Ray Stell
Date:
Subject: Re: .backup file documentation
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] Trust intermediate CA for client certificates