Add pg_stat_statements and pg_wait_sampling extensions to Makefile

This commit is contained in:
Anastasia Lubennikova
2022-09-29 11:50:45 +03:00
parent dabb6d2675
commit f6ab7df5a7
2 changed files with 14 additions and 1 deletions

View File

@@ -116,6 +116,16 @@ postgres-v14: postgres-v14-configure \
+@echo "Compiling pageinspect v14"
$(MAKE) -C $(POSTGRES_INSTALL_DIR)/build/v14/contrib/pageinspect install
.PHONY: pg_wait_sampling-v14
pg_wait_sampling-v14: postgres-v14-configure
+@echo "Compiling pg_wait_sampling v14"
$(MAKE) -C $(POSTGRES_INSTALL_DIR)/build/v14/contrib/pg_wait_sampling install
.PHONY: pg_stat_statements-v14
pg_stat_statements-v14: postgres-v14-configure
+@echo "Compiling pg_stat_statements v14"
$(MAKE) -C $(POSTGRES_INSTALL_DIR)/build/v14/contrib/pg_stat_statements install
.PHONY: postgres-v15
postgres-v15: postgres-v15-configure \
postgres-v15-headers # to prevent `make install` conflicts with neon's `postgres-headers`

View File

@@ -321,7 +321,10 @@ impl PostgresNode {
// uses only needed variables namely host, port, user, password.
format!("postgresql://no_user:{password}@{host}:{port}")
};
conf.append("shared_preload_libraries", "neon");
conf.append(
"shared_preload_libraries",
"neon, pg_stat_statements, pg_wait_sampling",
);
conf.append_line("");
conf.append("neon.pageserver_connstring", &pageserver_connstr);
conf.append("neon.tenant_id", &self.tenant_id.to_string());