From 7c4c36f5ac236e56f311d412d98b208342c57fa8 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 25 Jun 2025 13:47:56 +0300 Subject: [PATCH] Remove unnecessary separate installation of libpq (#12287) `make install` compiles and installs libpq. Remove redundant separate step to compile and install it. --- Makefile | 2 -- compute/compute-node.Dockerfile | 3 --- 2 files changed, 5 deletions(-) diff --git a/Makefile b/Makefile index 9824a47255..d39b9b68c8 100644 --- a/Makefile +++ b/Makefile @@ -159,8 +159,6 @@ postgres-%: postgres-configure-% \ postgres-headers-% # to prevent `make install` conflicts with neon's `postgres-headers` +@echo "Compiling PostgreSQL $*" $(MAKE) -C $(BUILD_DIR)/$* MAKELEVEL=0 install - +@echo "Compiling libpq $*" - $(MAKE) -C $(BUILD_DIR)/$*/src/interfaces/libpq install +@echo "Compiling pg_prewarm $*" $(MAKE) -C $(BUILD_DIR)/$*/contrib/pg_prewarm install +@echo "Compiling pg_buffercache $*" diff --git a/compute/compute-node.Dockerfile b/compute/compute-node.Dockerfile index cf0598eec8..35ece73030 100644 --- a/compute/compute-node.Dockerfile +++ b/compute/compute-node.Dockerfile @@ -171,9 +171,6 @@ RUN cd postgres && \ eval $CONFIGURE_CMD && \ make MAKELEVEL=0 -j $(getconf _NPROCESSORS_ONLN) -s install && \ make MAKELEVEL=0 -j $(getconf _NPROCESSORS_ONLN) -s -C contrib/ install && \ - # Install headers - make MAKELEVEL=0 -j $(getconf _NPROCESSORS_ONLN) -s -C src/include install && \ - make MAKELEVEL=0 -j $(getconf _NPROCESSORS_ONLN) -s -C src/interfaces/libpq install && \ # Enable some of contrib extensions echo 'trusted = true' >> /usr/local/pgsql/share/extension/autoinc.control && \ echo 'trusted = true' >> /usr/local/pgsql/share/extension/dblink.control && \