Re: unused_oids script is broken with bsd sed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, John Naylor <jcnaylor(at)gmail(dot)com>, Stas Kelvich <s(dot)kelvich(at)postgrespro(dot)ru>, Andreas Karlsson <andreas(at)proxel(dot)se>, Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, David Fetter <david(at)fetter(dot)org>
Subject: Re: unused_oids script is broken with bsd sed
Date: 2018-05-03 20:11:25
Message-ID: 18604.1525378285@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> Tom Lane wrote:
>> However, RenameTempFile is also used by Gen_fmgrtab.pl, and having the
>> same sort of no-touch semantics for fmgroids.h and friends would have some
>> additional fallout. The makefiles would think they have to keep
>> re-running Gen_fmgrtab.pl if fmgroids.h is older than the mod time on any
>> input file, and that's certainly no good. We can fix that by inventing a
>> stamp file for the Gen_fmgrtab.pl run, analogous to bki-stamp for the
>> genbki.pl run, but that means changes in the makefiles that go a bit
>> beyond the realm of triviality.

> Sounds OK to me -- a stamp file is already established technique, so it
> shouldn't go *too much* beyond triviality.

Yeah, what I'm envisioning is to change the makefile rules around these
files to look as much as possible like the ones around the BKI files,
which are (we hope) already debugged. So it doesn't seem like a high
risk change ... at least so far as the makefiles are concerned.

> I do note that
> msvc/Solution.pm runs Gen_fmgrtab.pl, but it shouldn't require any
> changes anyhow.

Hmm. Actually, given the IsNewer checks there, it looks like Solution.pm
is basically hand-rolling makefile-like dependency checking, which means
it would be fooled by no-touch updates in the same way as make is, causing
rebuilds to do unnecessary work. We could live with that for awhile
maybe, but ultimately Solution.pm would need to be fixed to use a stamp
file like the makefile logic.

I could take a stab at that, but I don't have any way to test it myself.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Malcontent null 2018-05-03 20:42:27 Re: Why Not MySQL?
Previous Message Andrew Dunstan 2018-05-03 20:08:01 Re: unused_oids script is broken with bsd sed