A patch for converting postgresql.conf.sample to postgresql.conf.sample.in . This feature allows you to manage the contents of postgresql.conf.sample at the configure phase.

Usage example:

    ./configure --enable-foo


configure.in:

    foo_params=$(cat <<-END
      foo_param1 = on
      foo_param2 = 16
    END
    )
    AC_SUBST(foo_params)


postgresql.conf.sample.in:

    @foo_params@


postgresql.conf.sample:

    foo_param1 = on
    foo_param2 = 16

--
From d8ac8bb8f49e8a528a3e89de38c23b014361dab3 Mon Sep 17 00:00:00 2001
From: "Ivan N. Taranov" <i.tara...@postgrespro.ru>
Date: Fri, 27 Mar 2020 22:27:08 +0300
Subject: [PATCH] postgresql.conf.sample->postgresql.conf.sample.in


diff --git a/configure.in b/configure.in
index ecdf172396..c20992be77 100644
--- a/configure.in
+++ b/configure.in
@@ -2389,7 +2389,7 @@ fi
 AC_SUBST(vpath_build)
 
 
-AC_CONFIG_FILES([GNUmakefile src/Makefile.global])
+AC_CONFIG_FILES([GNUmakefile src/Makefile.global src/backend/utils/misc/postgresql.conf.sample])
 
 AC_CONFIG_LINKS([
   src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}
diff --git a/src/backend/utils/misc/.gitignore b/src/backend/utils/misc/.gitignore
index 495b1aec76..0adfc77197 100644
--- a/src/backend/utils/misc/.gitignore
+++ b/src/backend/utils/misc/.gitignore
@@ -1 +1,2 @@
 /guc-file.c
+/postgresql.conf.sample
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample.in
similarity index 100%
rename from src/backend/utils/misc/postgresql.conf.sample
rename to src/backend/utils/misc/postgresql.conf.sample.in
-- 
2.26.0

Reply via email to