Skip to content

Commit

Permalink
PG-1214 Documented install and enable pgvector steps (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
nastena1606 authored Dec 3, 2024
1 parent 4c26ebf commit 14e8004
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
7 changes: 6 additions & 1 deletion docs/apt.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,16 @@ Run all the commands in the following sections as root or using the `sudo` comma

Install `pg_gather`


```{.bash data-prompt="$"}
$ sudo apt install percona-pg-gather
```

Install `pgvector`

```{.bash data-prompt="$"}
$ sudo apt install percona-postgresql-{{pgversion}}-pgvector
```

Some extensions require additional setup in order to use them with Percona Distribution for PostgreSQL. For more information, refer to [Enabling extensions](enable-extensions.md).

### Start the service
Expand Down
14 changes: 11 additions & 3 deletions docs/enable-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Some components require additional configuration before using them with Percona

## Patroni

Patroni is the third-party high availability solution for PostgreSQL. The [High Availability in PostgreSQL with Patroni](solutions/high-availability.md) chapter provides details about the solution overview and architecture deployment.
Patroni is the high availability solution for PostgreSQL. The [High Availability in PostgreSQL with Patroni](solutions/high-availability.md) chapter provides details about the solution overview and architecture deployment.

While setting up a high availability PostgreSQL cluster with Patroni, you will need the following components:

Expand All @@ -14,7 +14,7 @@ While setting up a high availability PostgreSQL cluster with Patroni, you will n

- [HAProxy :octicons-link-external-16:](http://www.haproxy.org/).

If you install the software fom packages, all required dependencies and service unit files are included. If you [install the software from the tarballs](tarball.md), you must first enable `etcd`. See the steps in the [etcd](#etcd) section if this document.
If you install the software fom packages, all required dependencies and service unit files are included. If you [install the software from the tarballs](tarball.md), you must first enable `etcd`. See the steps in the [etcd](#etcd) section in this document.

See the configuration guidelines for [Debian and Ubuntu](solutions/ha-setup-apt.md) and [RHEL and CentOS](solutions/ha-setup-yum.md).

Expand Down Expand Up @@ -125,7 +125,7 @@ $ pgpool -f <config-gile-path>/pgpool.conf

## pg_stat_monitor

Please refer to [`pg_stat_monitor`](pg-stat-monitor.md#setup) for setup steps.
Please refer to [`pg_stat_monitor`](https://docs.percona.com/pg-stat-monitor/setup.html) for setup steps.

## wal2json

Expand All @@ -137,6 +137,14 @@ wal_level = logical

Start / restart the server to apply the changes.

## pgvector

To get started, enable the extension for the database where you want to use it:

```sql
CREATE EXTENSION vector;
```

## Next steps

[Connect to PostgreSQL :material-arrow-right:](connect.md){.md-button}
Expand Down
6 changes: 6 additions & 0 deletions docs/yum.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ $ sudo yum -y install curl
$ sudo yum install percona-pgpool-II-pg{{pgversion}}
```

Install pgvector package suite:

```{.bash data-prompt="$"}
$ sudo yum install percona-pgvector_{{pgversion}} percona-pgvector_{{pgversion}}-debuginfo percona-pgvector_{{pgversion}}-debugsource percona-pgvector_{{pgversion}}-llvmjit
```

Some extensions require additional setup in order to use them with Percona Distribution for PostgreSQL. For more information, refer to [Enabling extensions](enable-extensions.md).

### Start the service
Expand Down

0 comments on commit 14e8004

Please sign in to comment.