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:
relpath.c:21:10: fatal error: catalog/pg_tablespace_d.h: No such file or directory #include "catalog/pg_tablespace_d.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
Can't be - pg_tablespace_d.h is included in the tarball I'm using.
Continue reading "Using Makefiles to build PostgreSQL"