Skip to content

Commit

Permalink
PG-1214 Documented install and enable pgvector steps (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
nastena1606 authored Dec 9, 2024
1 parent 28d21e5 commit 5a45528
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/apt.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ Run all the commands in the following sections as root or using the `sudo` comma
$ 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
19 changes: 16 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:](https://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 @@ -126,7 +126,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 @@ -136,6 +136,19 @@ After the installation, enable the following option in `postgresql.conf` configu
wal_level = logical
```

<<<<<<< HEAD
=======
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;
```

>>>>>>> 7845a94c... PG-1214 Documented install and enable pgvector steps
## Next steps

[Connect to PostgreSQL :material-arrow-right:](connect.md){.md-button}
8 changes: 7 additions & 1 deletion docs/yum.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,13 @@ $ sudo yum -y install curl
$ sudo yum install percona-pgpool-II-pg{{pgversion}}
```

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).
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 5a45528

Please sign in to comment.