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

From Stas Kelvich
Subject unused_oids script is broken with bsd sed
Date
Msg-id 37D774E4-FE1F-437E-B3D2-593F314B7505@postgrespro.ru
Whole thread Raw
Responses Re: unused_oids script is broken with bsd sed
List 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


Attachment

pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Expression errors with "FOR UPDATE" and postgres_fdw withpartition wise join enabled.
Next
From: Ildus Kurbangaliev
Date:
Subject: Translatable strings with formatting of 64bit values