For a long time I was using a Makefile to quickly build, start, stop and then wipe a predefined PostgreSQL version. That comes handy if you just want to test something on an older version, without actually installing the software. Everything happens in a single directory, even a different port is assigned.
When I needed that setup recently, I ran into unrelated build errors:
Can’t be -
pg_tablespace_d.h is included in the tarball I’m using.
Turns out, the Makefile PostgreSQL is using doesn’t really like the fact that it is called from another Makefile.
Anyway, the proper way to work around that problem is by using
This way, the build goes through and everything works as expected. I can keep my Makefiles around a bit longer.