2026-10-24 14:41:40
This commit is contained in:
1 parent
cbf1765417
commit
d67470f0e5
5 files changed
+69
-6
No files matched your search
@@ -48,6 +48,7 @@ The orchestrator runs the installers in this order:
|
||||
11. pgvector
|
||||
12. HypoPG
|
||||
13. pg_hint_plan
|
||||
14. wal2json
|
||||
|
||||
After a successful run, the orchestrator:
|
||||
|
||||
@@ -76,6 +77,7 @@ Each component can also be installed independently. The PostgreSQL installation
|
||||
./install_pgvector.sh --version 18.6
|
||||
./install_hypopg.sh --version 18.6
|
||||
./install_pg_hint_plan.sh --version 18.6
|
||||
./install_wal2json.sh --version 18.6
|
||||
```
|
||||
|
||||
Each installer also accepts `-v 18.6` and the previous positional form (`./install_pg_cron.sh 18.6`). The all-in-one orchestrator passes its complete `--version` value to every component installer.
|
||||
@@ -169,6 +171,10 @@ Builds and installs HypoPG against the selected PostgreSQL installation. Create
|
||||
|
||||
Builds and installs the pg_hint_plan tag matching the PostgreSQL major version when available. Create it in each database where it will be used with `CREATE EXTENSION pg_hint_plan`.
|
||||
|
||||
### `install_wal2json.sh`
|
||||
|
||||
Builds and installs wal2json as a PostgreSQL logical decoding output plugin. It does not use `CREATE EXTENSION` or require `shared_preload_libraries`; configure PostgreSQL with `wal_level = logical` and restart the server before creating a logical replication slot that uses the `wal2json` plugin.
|
||||
|
||||
### `install_common.sh`
|
||||
|
||||
Shared helper functions used by the installers, including:
|
||||
@@ -201,6 +207,7 @@ The following environment variables can override defaults:
|
||||
| `PGVECTOR_TAG` | Latest release/tag | pgvector source tag |
|
||||
| `HYPOPG_TAG` | Latest release/tag | HypoPG source tag |
|
||||
| `PG_HINT_PLAN_TAG` | PostgreSQL-major-compatible tag | pg_hint_plan source tag |
|
||||
| `WAL2JSON_TAG` | Latest release/tag | wal2json source tag |
|
||||
|
||||
Repository variables can also be overridden when using a custom mirror:
|
||||
|
||||
@@ -214,6 +221,7 @@ PG_STAT_MONITOR_REPOSITORY=owner/repository
|
||||
PGVECTOR_REPOSITORY=owner/repository
|
||||
HYPOPG_REPOSITORY=owner/repository
|
||||
PG_HINT_PLAN_REPOSITORY=owner/repository
|
||||
WAL2JSON_REPOSITORY=owner/repository
|
||||
```
|
||||
|
||||
Example:
|
||||
@@ -233,7 +241,7 @@ When `CONFIG_FILE` is supplied, the orchestrator adds the modules and extensions
|
||||
shared_preload_libraries = 'pg_cron,timescaledb,pgaudit,pg_stat_statements,pg_stat_monitor,passwordcheck'
|
||||
```
|
||||
|
||||
`pg_repack`, pgvector, HypoPG, and `set_user` do not require `shared_preload_libraries`. `auto_explain` and pg_hint_plan can be loaded per session or configured for server startup; they are not added automatically. `passwordcheck` and `auto_explain` are PostgreSQL contrib modules (not SQL extensions), and `pg_stat_activity` is a built-in PostgreSQL system view.
|
||||
`pg_repack`, pgvector, HypoPG, `set_user`, and wal2json do not require `shared_preload_libraries`. `auto_explain` and pg_hint_plan can be loaded per session or configured for server startup; they are not added automatically. wal2json is a logical decoding output plugin and requires `wal_level = logical` plus a server restart before use. `passwordcheck` and `auto_explain` are PostgreSQL contrib modules (not SQL extensions), and `pg_stat_activity` is a built-in PostgreSQL system view.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -276,7 +284,8 @@ ls \
|
||||
/app/postgres/rdbms/18.6/lib/pg_stat_monitor.so \
|
||||
/app/postgres/rdbms/18.6/lib/auto_explain.so \
|
||||
/app/postgres/rdbms/18.6/lib/hypopg.so \
|
||||
/app/postgres/rdbms/18.6/lib/pg_hint_plan.so
|
||||
/app/postgres/rdbms/18.6/lib/pg_hint_plan.so \
|
||||
/app/postgres/rdbms/18.6/lib/wal2json.so
|
||||
```
|
||||
|
||||
The extension SQL objects still need to be created in each target database with PostgreSQL's `CREATE EXTENSION` command.
|
||||
Reference in new issue
Block a user