diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-05-03 18:06:45 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-05-03 18:06:45 -0400 |
commit | 1f1cd9b5ddc6e7464c1c7416bcce7007fe3bc88c (patch) | |
tree | 359e61dff30b9129c65132f0845114cbaa6964c3 /src/backend/access/gist/gist.c | |
parent | 9bf28f96c7eb0c3630ef034679c426c2ee289aca (diff) | |
download | postgresql-1f1cd9b5ddc6e7464c1c7416bcce7007fe3bc88c.tar.gz postgresql-1f1cd9b5ddc6e7464c1c7416bcce7007fe3bc88c.zip |
Avoid overwriting unchanged output files in genbki.pl and Gen_fmgrtab.pl.
If a particular output file already exists with the contents it should
have, leave it alone, so that its mod timestamp is not advanced.
In builds using --enable-depend, this can avoid the need to recompile .c
files whose included files didn't actually change. It's not clear whether
it saves much of anything for users of ccache; but the cost of doing the
file comparisons seems to be negligible, so we might as well do it.
For developers using the MSVC toolchain, this will create a regression:
msvc/Solution.pm will sometimes run genbki.pl or Gen_fmgrtab.pl
unnecessarily. I'll look into fixing that separately.
Discussion: https://postgr.es/m/16925.1525376229@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions