show precise repos version for dev builds?

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: show precise repos version for dev builds?
Date: 2017-10-01 08:14:23
Message-ID: alpine.DEB.2.20.1710010938530.4754@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


I use postgres "11devel" packages kindly distributed on
"" and recompiled every few hours.

I wanted to know which version it was, and "11devel" is kind of imprecise.

Ok, there is a hint in the deb package name:


But this information does not seem to be available from the executables

sh> psql --version
psql (PostgreSQL) 11devel

sh> pgbench --version
pgbench (PostgreSQL) 9.6.5

Some projects provide a repository or build date information:

sh> clang --version
clang version 6.0.0 (trunk 314585)

sh> gcc --version
gcc (GCC) 8.0.0 20170930 (experimental)

With some svn project I use "svnversion" which shows a summary of the
status, eg "5432M" which tells that the sources are locally modified
from version 5432.

I would find it useful to have something like that in pg as well, and I
have not found it available.

ISTM that extending the version name with the commit id and or date in
some version output, eg "11devel [2632bcc 2017-09-30 ...]", would do it.




Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-10-01 08:45:57 Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple
Previous Message Heikki Linnakangas 2017-10-01 06:38:34 Re: pgbench - minor fix for meta command only scripts