Commit f1d72314 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated postgresql to 12.3

parent 9ba6c842
...@@ -21,16 +21,16 @@ all: postgresql-service ...@@ -21,16 +21,16 @@ all: postgresql-service
ln -sv /data/etc/shadow /etc/shadow ln -sv /data/etc/shadow /etc/shadow
mv -v /etc/gshadow /data/etc/gshadow mv -v /etc/gshadow /data/etc/gshadow
ln -sv /data/etc/gshadow /etc/gshadow ln -sv /data/etc/gshadow /etc/gshadow
tar xf postgresql-12.0.tar.bz2 tar xf postgresql-12.3.tar.bz2
patch -Np1 -d postgresql-12.0 < postgresql-12.0-runfile.patch patch -Np1 -d postgresql-12.3 < postgresql-12.3-runfile.patch
cd postgresql-12.0 && ./configure --prefix=/usr --enable-thread-safety --docdir=/usr/share/doc/postgresql-12.0 --with-openssl --with-perl --with-python --with-tcl cd postgresql-12.3 && ./configure --prefix=/usr --enable-thread-safety --docdir=/usr/share/doc/postgresql-12.3 --with-openssl --with-perl --with-python --with-tcl
$(MAKE) -C postgresql-12.0 MAKELEVEL=0 $(MAKE) -C postgresql-12.3 MAKELEVEL=0
$(MAKE) -C postgresql-12.0/contrib $(MAKE) -C postgresql-12.3/contrib
$(MAKE) -C postgresql-12.0 install $(MAKE) -C postgresql-12.3 install
$(MAKE) -C postgresql-12.0 install-docs $(MAKE) -C postgresql-12.3 install-docs
$(MAKE) -C postgresql-12.0/contrib install $(MAKE) -C postgresql-12.3/contrib install
cd postgresql-12.0 && chown -Rv nobody . cd postgresql-12.3 && chown -Rv nobody .
cd postgresql-12.0 && su nobody -s /bin/bash -c "make check" cd postgresql-12.3 && su nobody -s /bin/bash -c "make check"
install -v -dm700 /srv/pgsql/data install -v -dm700 /srv/pgsql/data
install -v -dm755 /run/postgresql install -v -dm755 /run/postgresql
chown -Rv postgres:postgres /srv/pgsql /run/postgresql chown -Rv postgres:postgres /srv/pgsql /run/postgresql
...@@ -38,7 +38,7 @@ all: postgresql-service ...@@ -38,7 +38,7 @@ all: postgresql-service
@echo "d /run/postgresql 0775 postgres postgres -" > /usr/lib/tmpfiles.d/postgresql.conf @echo "d /run/postgresql 0775 postgres postgres -" > /usr/lib/tmpfiles.d/postgresql.conf
@echo "$$POSTGRESQL_SERVICE" > /lib/systemd/system/postgresql.service @echo "$$POSTGRESQL_SERVICE" > /lib/systemd/system/postgresql.service
systemctl enable postgresql.service systemctl enable postgresql.service
rm -rf postgresql-12.0 rm -rf postgresql-12.3
postgresql-service: postgresql-service:
define POSTGRESQL_SERVICE define POSTGRESQL_SERVICE
......
diff -uNr postgresql-12.0/src/include/pg_config_manual.h postgresql-12.0-runfile/src/include/pg_config_manual.h diff -uNr postgresql-12.3/src/include/pg_config_manual.h postgresql-12.3-runfile/src/include/pg_config_manual.h
--- postgresql-12.0/src/include/pg_config_manual.h 2019-10-01 05:36:55.000000000 +0930 --- postgresql-12.3/src/include/pg_config_manual.h 2020-05-12 06:38:58.000000000 +0930
+++ postgresql-12.0-runfile/src/include/pg_config_manual.h 2019-10-28 09:43:59.898548701 +1030 +++ postgresql-12.3-runfile/src/include/pg_config_manual.h 2021-08-23 22:03:22.325980884 +0930
@@ -179,7 +179,7 @@ @@ -179,7 +179,7 @@
* here's where to twiddle it. You can also override this at runtime * here's where to twiddle it. You can also override this at runtime
* with the postmaster's -k switch. * with the postmaster's -k switch.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment