This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this 
push:
     new a632fdca294 Load gp_exttable_fdw on initdb
a632fdca294 is described below

commit a632fdca2947e4c8ebcb9005bd94a18347f2b87f
Author: Jinbao Chen <[email protected]>
AuthorDate: Thu Oct 16 10:04:51 2025 +0800

    Load gp_exttable_fdw on initdb
---
 GNUmakefile.in          |  4 +--
 gpcontrib/Makefile      | 72 ++++++++++++++++++++++++++-----------------------
 src/bin/initdb/initdb.c | 12 ++++-----
 3 files changed, 46 insertions(+), 42 deletions(-)

diff --git a/GNUmakefile.in b/GNUmakefile.in
index 2a292a82b95..f3ac889d1a7 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -36,7 +36,7 @@ ifeq ($(enable_pax), yes)
        $(MAKE) -C contrib/pax_storage all
 endif
 #      $(MAKE) -C gpMgmt all
-#      $(MAKE) -C gpcontrib all
+       $(MAKE) -C gpcontrib all
        +@echo "All of Apache Cloudberry successfully made. Ready to install."
 
 docs:
@@ -83,7 +83,7 @@ ifeq ($(with_openssl), yes)
        $(MAKE) -C contrib/sslinfo $@
 endif
 #      $(MAKE) -C gpMgmt $@
-#      $(MAKE) -C gpcontrib $@
+       $(MAKE) -C gpcontrib $@
        +@echo "Apache Cloudberry installation complete."
 
 install-docs:
diff --git a/gpcontrib/Makefile b/gpcontrib/Makefile
index cc61f3f8e03..e615264002b 100644
--- a/gpcontrib/Makefile
+++ b/gpcontrib/Makefile
@@ -12,26 +12,28 @@ include $(top_builddir)/src/Makefile.global
 #
 recurse_targets = ""
 
-ifeq "$(enable_debug_extensions)" "yes"
-       recurse_targets = gp_sparse_vector \
-              gp_distribution_policy \
-               gp_internal_tools \
-               gp_debug_numsegments \
-               gp_inject_fault \
-               gp_exttable_fdw \
-               gp_legacy_string_agg \
-               gp_replica_check \
-               gp_toolkit \
-               pg_hint_plan
-else
-       recurse_targets = gp_sparse_vector \
-              gp_distribution_policy \
-               gp_internal_tools \
-               gp_legacy_string_agg \
-               gp_exttable_fdw \
-               gp_toolkit \
-               pg_hint_plan
-endif
+recurse_targets = gp_exttable_fdw
+
+#ifeq "$(enable_debug_extensions)" "yes"
+#      recurse_targets = gp_sparse_vector \
+#             gp_distribution_policy \
+#               gp_internal_tools \
+#               gp_debug_numsegments \
+#               gp_inject_fault \
+#               gp_exttable_fdw \
+#               gp_legacy_string_agg \
+#               gp_replica_check \
+#               gp_toolkit \
+#               pg_hint_plan
+#else
+#      recurse_targets = gp_sparse_vector \
+#             gp_distribution_policy \
+#               gp_internal_tools \
+#               gp_legacy_string_agg \
+#               gp_exttable_fdw \
+#               gp_toolkit \
+#               pg_hint_plan
+#endif
 
 ifeq "$(with_zstd)" "yes"
        recurse_targets += zstd
@@ -41,7 +43,9 @@ ifeq "$(with_quicklz)" "yes"
 endif
 $(call recurse,all install clean distclean, $(recurse_targets))
 
-all: gpcloud pxf mapreduce orafce
+#all: gpcloud pxf mapreduce orafce
+
+all:
 
 gpcloud:
        @if [ "$(enable_gpcloud)" = "yes" ]; then \
@@ -65,19 +69,19 @@ orafce:
        fi
 
 install:
-       @if [ "$(enable_gpcloud)" = "yes" ]; then \
-               $(MAKE) -C gpcloud install && \
-               $(MAKE) -C gpcloud/bin/gpcheckcloud install; \
-       fi
-       @if [ "$(enable_mapreduce)" = "yes" ]; then \
-               $(MAKE) -C gpmapreduce install; \
-       fi
-       @if [ "$(enable_pxf)" = "yes" ]; then \
-               $(MAKE) -C pxf_fdw install; \
-       fi
-       @if [ "$(enable_orafce)" = "yes" ]; then \
-               $(MAKE) -C orafce NO_PGXS=true install; \
-       fi
+#      @if [ "$(enable_gpcloud)" = "yes" ]; then \
+#              $(MAKE) -C gpcloud install && \
+#              $(MAKE) -C gpcloud/bin/gpcheckcloud install; \
+#      fi
+#      @if [ "$(enable_mapreduce)" = "yes" ]; then \
+#              $(MAKE) -C gpmapreduce install; \
+#      fi
+#      @if [ "$(enable_pxf)" = "yes" ]; then \
+#              $(MAKE) -C pxf_fdw install; \
+#      fi
+#      @if [ "$(enable_orafce)" = "yes" ]; then \
+#              $(MAKE) -C orafce NO_PGXS=true install; \
+#      fi
 
 clean:
        if [ "$(enable_mapreduce)" = "yes" ]; then $(MAKE) -C gpmapreduce 
clean; fi
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index be32382932f..538ee73255d 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2161,11 +2161,11 @@ load_plpgsql(FILE *cmdfd)
 /*
  * GPDB: load external table support
  */
-//static void
-//load_exttable(FILE *cmdfd)
-//{
-//     PG_CMD_PUTS("CREATE EXTENSION gp_exttable_fdw;\n\n");
-//}
+static void
+load_exttable(FILE *cmdfd)
+{
+       PG_CMD_PUTS("CREATE EXTENSION gp_exttable_fdw;\n\n");
+}
 
 /*
  * clean everything up in template1
@@ -3414,7 +3414,7 @@ initialize_data_directory(void)
 
        load_plpgsql(cmdfd);
 
-//     load_exttable(cmdfd);
+       load_exttable(cmdfd);
 
        /* sets up the Apache Cloudberry admin schema */
        setup_cdb_schema(cmdfd);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to