unused_oids script is broken with bsd sed

Поиск
Список
Период
Сортировка
От Stas Kelvich
Тема unused_oids script is broken with bsd sed
Дата
Msg-id 37D774E4-FE1F-437E-B3D2-593F314B7505@postgrespro.ru
обсуждение исходный текст
Ответы Re: unused_oids script is broken with bsd sed  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Список pgsql-hackers
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.

--
Stas Kelvich
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: Expression errors with "FOR UPDATE" and postgres_fdw withpartition wise join enabled.
Следующее
От: Ildus Kurbangaliev
Дата:
Сообщение: Translatable strings with formatting of 64bit values