File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ sudo pfs -C disk mkdir /nvme1n1/shared_data
2828# 初始化 Primary 节点的本地目录和共享目录
2929sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/ primary
3030# 注入配置模板
31- cat /u01/polardb_pg/share/polardb.conf.sample >> $HOME/primary/postgresql.conf
31+ cat /u01/polardb_pg/share/postgresql/ polardb.conf.sample >> $HOME/primary/postgresql.conf
3232```
3333
3434编辑 Primary 节点的配置文件 ` ~/primary/postgresql.conf ` ,增加配置项:
@@ -89,7 +89,7 @@ initdb -D /tmp/replica1
8989cp /tmp/replica1/*.conf $HOME/replica1/
9090
9191# 注入配置模板
92- cat /u01/polardb_pg/share/polardb.conf.sample >> $HOME/replica1/postgresql.conf
92+ cat /u01/polardb_pg/share/postgresql/ polardb.conf.sample >> $HOME/replica1/postgresql.conf
9393```
9494
9595编辑 Replica 节点的配置文件 ` ~/replica1/postgresql.conf ` ,增加配置项:
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ sudo pfs -C disk mkdir /nvme1n1/shared_data
2828# 初始化 Primary 节点的本地目录和共享目录
2929sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/ primary
3030# 注入配置模板
31- cat /u01/polardb_pg/share/polardb.conf.sample >> $HOME/primary/postgresql.conf
31+ cat /u01/polardb_pg/share/postgresql/ polardb.conf.sample >> $HOME/primary/postgresql.conf
3232```
3333
3434编辑 Primary 节点的配置文件 ` ~/primary/postgresql.conf ` ,增加配置项:
@@ -89,7 +89,7 @@ initdb -D /tmp/replica1
8989cp /tmp/replica1/*.conf $HOME/replica1/
9090
9191# 注入配置模板
92- cat /u01/polardb_pg/share/polardb.conf.sample >> $HOME/replica1/postgresql.conf
92+ cat /u01/polardb_pg/share/postgresql/ polardb.conf.sample >> $HOME/replica1/postgresql.conf
9393```
9494
9595编辑 Replica 节点的配置文件 ` ~/replica1/postgresql.conf ` ,增加配置项:
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ endif
212212 $(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample '$(DESTDIR)$(datadir)/pg_hba.conf.sample'
213213 $(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample '$(DESTDIR)$(datadir)/pg_ident.conf.sample'
214214 $(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample '$(DESTDIR)$(datadir)/postgresql.conf.sample'
215+ $(INSTALL_DATA) $(srcdir)/utils/misc/polardb.conf.sample '$(DESTDIR)$(datadir)/polardb.conf.sample'
215216
216217ifeq ($(with_llvm ) , yes)
217218install-bin : install-postgres-bitcode
@@ -276,7 +277,8 @@ endif
276277 $(MAKE) -C utils uninstall-data
277278 rm -f '$(DESTDIR)$(datadir)/pg_hba.conf.sample' \
278279 '$(DESTDIR)$(datadir)/pg_ident.conf.sample' \
279- '$(DESTDIR)$(datadir)/postgresql.conf.sample'
280+ '$(DESTDIR)$(datadir)/postgresql.conf.sample' \
281+ '$(DESTDIR)$(datadir)/polardb.conf.sample'
280282ifeq ($(with_llvm ) , yes)
281283 $(call uninstall_llvm_module,postgres)
282284endif
You can’t perform that action at this time.
0 commit comments