Re: unused_oids script is broken with bsd sed

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: unused_oids script is broken with bsd sed
Дата
Msg-id 34a54c54-9132-1254-2bc3-d3489fb79728@2ndQuadrant.com
обсуждение исходный текст
Ответ на unused_oids script is broken with bsd sed  (Stas Kelvich <s.kelvich@postgrespro.ru>)
Ответы Re: unused_oids script is broken with bsd sed  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: lazy detoasting
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Porting PG Extension from UNIX to Windows