@@ -415,6 +415,23 @@ If you wish to access with HTTPS, you must remove `files/pki/csr/pigsty.csr`, `f
415415
416416
417417
418+ <br >
419+ <details ><summary >How to manually add upstream repo files</summary >
420+
421+ Pigsty has a built-in wrap script ` bin/repo-add ` , which will invoke ansible playbook ` node.yml ` to adding repo files to corresponding nodes.
422+
423+ ``` bash
424+ bin/repo-add < selector> [modules]
425+ bin/repo-add 10.10.10.10 # add node repos for node 10.10.10.10
426+ bin/repo-add infra node,infra # add node and infra repos for group infra
427+ bin/repo-add infra node,local # add node repos and local pigsty repo
428+ bin/repo-add pg-test node,pgsql # add node & pgsql repos for group pg-test
429+ ```
430+
431+ </details >
432+
433+
434+
418435
419436----------------
420437
@@ -769,9 +786,25 @@ There are several possible reasons:
769786
770787
771788
772-
773789< br>
790+ < details><summary> Install PostgreSQL 12 - 14, and 16 beta< /summary>
791+
792+ To install PostgreSQL 12 - 15, you have to set ` pg_version` to ` 12` , ` 13` , ` 14` , or ` 15` in the inventory. (usually at cluster level)
793+
794+ To install PostgreSQL 16 beta, you have to change ` pg_libs` and ` pg_extensions` too, since most extensions are not available for pg16 yet.
774795
796+ ` ` ` yaml
797+ pg_version: 16 # install pg 16 in this template
798+ pg_libs: 'pg_stat_statements, auto_explain' # remove timescaledb from pg 16 beta
799+ pg_extensions: [] # missing pg16 extensions for now
800+ ` ` `
801+
802+ < /details>
803+
804+
805+
806+
807+ < br>
775808< details><summary> How enable hugepage for PostgreSQL? < /summary>
776809
777810! > use ` node_hugepage_count` and ` node_hugepage_ratio` or ` /pg/bin/pg-tune-hugepage`
@@ -791,6 +824,8 @@ pg restart <cls> # restart postgres to use hugepage
791824</details>
792825
793826
827+
828+
794829<br>
795830<details><summary>How to guarantee zero data loss during failover?</summary>
796831
@@ -802,8 +837,8 @@ Consider using [Sync Standby](PGSQL-CONF#sync-standby) and [Quorum Comit](PGSQL-
802837
803838
804839
805- <br>
806840
841+ <br>
807842<details><summary>How to survive from disk full?</summary>
808843
809844!> `rm -rf /pg/dummy` will free some emergency space.
0 commit comments