postgres/packaging outdated code?
kinjelom opened this issue · 1 comments
kinjelom commented
tar -xjf postgres/postgresql-9.5.19.tar.bz2
vs diff -u -ur postgresql-9.5.1.pristine
What it should to do?
VERSION=9.5.19
tar -xjf postgres/postgresql-${VERSION}.tar.bz2
cd postgresql-${VERSION}/
patch -p1 <<EOF
diff -u -ur postgresql-9.5.1.pristine/src/include/pg_config_manual.h postgresql-9.5.1/src/include/pg_config_manual.h
--- postgresql-9.5.1.pristine/src/include/pg_config_manual.h 2016-02-08 16:12:28.000000000 -0500
+++ postgresql-9.5.1/src/include/pg_config_manual.h 2016-11-01 22:21:21.000000000 -0400
@@ -169,7 +169,7 @@
* here's where to twiddle it. You can also override this at runtime
* with the postmaster's -k switch.
*/
-#define DEFAULT_PGSOCKET_DIR "/tmp"
+#define DEFAULT_PGSOCKET_DIR "/var/vcap/sys/run/postgres"
jhunt commented
The patch moves the default directory for the postgres socket from /tmp
to the sys/run directory that BOSH releases expect.