Using the psql
CLI tool with a PostgreSQL 9.6.1 server running on localhost, I created a new tablespace with
create tablespace my_tablespace location /tmp/data;
and found that this created a directory called PG_9.6_201608131
.
I can see that 9.6
is the version, but what is the last string of numbers? I'd like to use this to create databases in a Makefile, so it will be helpful to know how that number is derived (rather than just hard-coding it).