Re: unused_oids script is broken with bsd sed - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: unused_oids script is broken with bsd sed
Date
Msg-id 34a54c54-9132-1254-2bc3-d3489fb79728@2ndQuadrant.com
Whole thread Raw
In response to unused_oids script is broken with bsd sed  (Stas Kelvich <s.kelvich@postgrespro.ru>)
Responses Re: unused_oids script is broken with bsd sed  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

On 04/25/2018 06:22 AM, Stas Kelvich wrote:
> Hi.
>
> BSD sed in macOS doesn't understand word boundary operator "\b". So after
> 372728b0d49 unused_oids doesn’t match all oids in new *.dat files marking
> all of them as unused.
>
> It is possible to write more portable regexps, e.g. change "\b" to
> something like "^.*{*.*", but it seems easier for feature use to just
> rewrite unused_oids in perl to match duplicate_oids. Also add in-place
> complain about duplicates instead of running uniq through oids array.
>



+many for rewriting in perl. Do you want to have a go at that? If not I
will.

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: lazy detoasting
Next
From: Andrew Dunstan
Date:
Subject: Re: Porting PG Extension from UNIX to Windows