Skip to content

Commit

Permalink
feat: add polardb.conf.sample into packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdrivingduck committed Jan 16, 2025
1 parent 1dddf59 commit dfc83b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions polar-doc/docs/deploying/db-pfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sudo pfs -C disk mkdir /nvme1n1/shared_data
# 初始化 Primary 节点的本地目录和共享目录
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/ primary
# 注入配置模板
cat /u01/polardb_pg/share/polardb.conf.sample >> $HOME/primary/postgresql.conf
cat /u01/polardb_pg/share/postgresql/polardb.conf.sample >> $HOME/primary/postgresql.conf
```

编辑 Primary 节点的配置文件 `~/primary/postgresql.conf`,增加配置项:
Expand Down Expand Up @@ -89,7 +89,7 @@ initdb -D /tmp/replica1
cp /tmp/replica1/*.conf $HOME/replica1/
# 注入配置模板
cat /u01/polardb_pg/share/polardb.conf.sample >> $HOME/replica1/postgresql.conf
cat /u01/polardb_pg/share/postgresql/polardb.conf.sample >> $HOME/replica1/postgresql.conf
```

编辑 Replica 节点的配置文件 `~/replica1/postgresql.conf`,增加配置项:
Expand Down
4 changes: 2 additions & 2 deletions polar-doc/docs/zh/deploying/db-pfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sudo pfs -C disk mkdir /nvme1n1/shared_data
# 初始化 Primary 节点的本地目录和共享目录
sudo polar-initdb.sh $HOME/primary/ /nvme1n1/shared_data/ primary
# 注入配置模板
cat /u01/polardb_pg/share/polardb.conf.sample >> $HOME/primary/postgresql.conf
cat /u01/polardb_pg/share/postgresql/polardb.conf.sample >> $HOME/primary/postgresql.conf
```

编辑 Primary 节点的配置文件 `~/primary/postgresql.conf`,增加配置项:
Expand Down Expand Up @@ -89,7 +89,7 @@ initdb -D /tmp/replica1
cp /tmp/replica1/*.conf $HOME/replica1/
# 注入配置模板
cat /u01/polardb_pg/share/polardb.conf.sample >> $HOME/replica1/postgresql.conf
cat /u01/polardb_pg/share/postgresql/polardb.conf.sample >> $HOME/replica1/postgresql.conf
```

编辑 Replica 节点的配置文件 `~/replica1/postgresql.conf`,增加配置项:
Expand Down
4 changes: 3 additions & 1 deletion src/backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ endif
$(INSTALL_DATA) $(srcdir)/libpq/pg_hba.conf.sample '$(DESTDIR)$(datadir)/pg_hba.conf.sample'
$(INSTALL_DATA) $(srcdir)/libpq/pg_ident.conf.sample '$(DESTDIR)$(datadir)/pg_ident.conf.sample'
$(INSTALL_DATA) $(srcdir)/utils/misc/postgresql.conf.sample '$(DESTDIR)$(datadir)/postgresql.conf.sample'
$(INSTALL_DATA) $(srcdir)/utils/misc/polardb.conf.sample '$(DESTDIR)$(datadir)/polardb.conf.sample'

ifeq ($(with_llvm), yes)
install-bin: install-postgres-bitcode
Expand Down Expand Up @@ -276,7 +277,8 @@ endif
$(MAKE) -C utils uninstall-data
rm -f '$(DESTDIR)$(datadir)/pg_hba.conf.sample' \
'$(DESTDIR)$(datadir)/pg_ident.conf.sample' \
'$(DESTDIR)$(datadir)/postgresql.conf.sample'
'$(DESTDIR)$(datadir)/postgresql.conf.sample' \
'$(DESTDIR)$(datadir)/polardb.conf.sample'
ifeq ($(with_llvm), yes)
$(call uninstall_llvm_module,postgres)
endif
Expand Down

0 comments on commit dfc83b1

Please sign in to comment.