Skip to content

Commit

Permalink
Enable copy for demo cluster (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
leborchuk authored Jan 28, 2025
1 parent 01f08df commit e8d6400
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gpAux/gpdemo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ifeq ($(WITH_MIRRORS), )
WITH_MIRRORS = true
endif

ifeq ($(ENABLE_COPY), )
ENABLE_COPY = true
endif

ifeq ($(WITH_MIRRORS), true)
WITH_STANDBY = true
endif
Expand All @@ -32,6 +36,7 @@ export DEMO_PORT_BASE=$(PORT_BASE)
export NUM_PRIMARY_MIRROR_PAIRS
export WITH_MIRRORS
export WITH_STANDBY
export ENABLE_COPY
export BLDWRAP_POSTGRES_CONF_ADDONS
export DEFAULT_QD_MAX_CONNECT=150

Expand Down
11 changes: 11 additions & 0 deletions gpAux/gpdemo/demo_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,17 @@ if [ "${WITH_MIRRORS}" == "true" ]; then
EOF
fi

if [ "${ENABLE_COPY}" == "true" ]; then
cat >> $CLUSTER_CONFIG_POSTGRES_ADDONS <<-EOF
# Turn on COPY for cluster
ycmdb.yc_allow_copy_to_program=on
ycmdb.yc_allow_copy_from_file=on
ycmdb.yc_allow_copy_to_file=on
EOF
fi


STANDBY_INIT_OPTS=""
if [ "${WITH_STANDBY}" == "true" ]; then
Expand Down

0 comments on commit e8d6400

Please sign in to comment.