cloudfoundry-community / postgres-boshrelease

A BOSH release for deploying PostgreSQL
MIT License
8 stars 10 forks source link

postgres/packaging outdated code? #32

Closed kinjelom closed 4 years ago

kinjelom commented 4 years ago

tar -xjf postgres/postgresql-9.5.19.tar.bz2 vs diff -u -ur postgresql-9.5.1.pristine What it should to do?

https://github.com/cloudfoundry-community/postgres-boshrelease/blob/master/packages/postgres/packaging#L16

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 4 years ago

The patch moves the default directory for the postgres socket from /tmp to the sys/run directory that BOSH releases expect.