Skip to content

Commit 7568eac

Browse files
committed
feat: add polardb.conf.sample into packages
1 parent 1dddf59 commit 7568eac

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

polar-doc/docs/deploying/db-pfs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sudo pfs -C disk mkdir /nvme1n1/shared_data
2828
# 初始化 Primary 节点的本地目录和共享目录
2929
sudo 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
8989
cp /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`,增加配置项:

polar-doc/docs/zh/deploying/db-pfs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sudo pfs -C disk mkdir /nvme1n1/shared_data
2828
# 初始化 Primary 节点的本地目录和共享目录
2929
sudo 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
8989
cp /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`,增加配置项:

src/backend/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

216217
ifeq ($(with_llvm), yes)
217218
install-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'
280282
ifeq ($(with_llvm), yes)
281283
$(call uninstall_llvm_module,postgres)
282284
endif

0 commit comments

Comments
 (0)