From 70f4950a00ec1720c90c0ab8661ba9db0ec1bb9a Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Fri, 28 Jul 2023 15:35:36 +0200 Subject: [PATCH] Add postmaster related api For an extension I'm writing I want to connect back to Postgres. So I need to know what port and address Postgres is running on. The `postmaster.h` header contains that information, so this starts including that header in `pgrx_pg_sys`. --- pgrx-pg-sys/include/pg11.h | 1 + pgrx-pg-sys/include/pg12.h | 1 + pgrx-pg-sys/include/pg13.h | 1 + pgrx-pg-sys/include/pg14.h | 1 + pgrx-pg-sys/include/pg15.h | 1 + pgrx-pg-sys/include/pg16.h | 1 + 6 files changed, 6 insertions(+) diff --git a/pgrx-pg-sys/include/pg11.h b/pgrx-pg-sys/include/pg11.h index 89c0ec3bf..5ebb9984b 100644 --- a/pgrx-pg-sys/include/pg11.h +++ b/pgrx-pg-sys/include/pg11.h @@ -97,6 +97,7 @@ #include "parser/scansup.h" #include "plpgsql.h" #include "postmaster/bgworker.h" +#include "postmaster/postmaster.h" #include "replication/logical.h" #include "replication/output_plugin.h" #include "rewrite/rewriteHandler.h" diff --git a/pgrx-pg-sys/include/pg12.h b/pgrx-pg-sys/include/pg12.h index ce74c95ea..c20173dde 100644 --- a/pgrx-pg-sys/include/pg12.h +++ b/pgrx-pg-sys/include/pg12.h @@ -97,6 +97,7 @@ #include "parser/scansup.h" #include "plpgsql.h" #include "postmaster/bgworker.h" +#include "postmaster/postmaster.h" #include "replication/logical.h" #include "replication/output_plugin.h" #include "rewrite/rewriteHandler.h" diff --git a/pgrx-pg-sys/include/pg13.h b/pgrx-pg-sys/include/pg13.h index 79fb95365..75867b4b1 100644 --- a/pgrx-pg-sys/include/pg13.h +++ b/pgrx-pg-sys/include/pg13.h @@ -97,6 +97,7 @@ #include "parser/scansup.h" #include "plpgsql.h" #include "postmaster/bgworker.h" +#include "postmaster/postmaster.h" #include "replication/logical.h" #include "replication/output_plugin.h" #include "rewrite/rewriteHandler.h" diff --git a/pgrx-pg-sys/include/pg14.h b/pgrx-pg-sys/include/pg14.h index 79fb95365..75867b4b1 100644 --- a/pgrx-pg-sys/include/pg14.h +++ b/pgrx-pg-sys/include/pg14.h @@ -97,6 +97,7 @@ #include "parser/scansup.h" #include "plpgsql.h" #include "postmaster/bgworker.h" +#include "postmaster/postmaster.h" #include "replication/logical.h" #include "replication/output_plugin.h" #include "rewrite/rewriteHandler.h" diff --git a/pgrx-pg-sys/include/pg15.h b/pgrx-pg-sys/include/pg15.h index 79fb95365..75867b4b1 100644 --- a/pgrx-pg-sys/include/pg15.h +++ b/pgrx-pg-sys/include/pg15.h @@ -97,6 +97,7 @@ #include "parser/scansup.h" #include "plpgsql.h" #include "postmaster/bgworker.h" +#include "postmaster/postmaster.h" #include "replication/logical.h" #include "replication/output_plugin.h" #include "rewrite/rewriteHandler.h" diff --git a/pgrx-pg-sys/include/pg16.h b/pgrx-pg-sys/include/pg16.h index 79fb95365..75867b4b1 100644 --- a/pgrx-pg-sys/include/pg16.h +++ b/pgrx-pg-sys/include/pg16.h @@ -97,6 +97,7 @@ #include "parser/scansup.h" #include "plpgsql.h" #include "postmaster/bgworker.h" +#include "postmaster/postmaster.h" #include "replication/logical.h" #include "replication/output_plugin.h" #include "rewrite/rewriteHandler.h"