Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG-1013 Updated install steps for pg_tde #378

Merged
merged 4 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions documentation/docs/apt.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ This tutorial shows how to install `pg_tde` with [Percona Distribution for Postg

## Preconditions

You need the `percona-release` repository management tool that enables the desired Percona repository for you.
1. Debian and other systems that use the `apt` package manager include the upstream PostgreSQL server package (`postgresql-{{pgversion17}}`) by default. You need to uninstall this package before you install Percona Server for PostgreSQL and `pg_tde` to avoid conflicts.
2. You need the `percona-release` repository management tool that enables the desired Percona repository for you.

## Install `percona-release`

1. You need the following dependencies to install `percona-release`:

Expand Down Expand Up @@ -37,10 +40,10 @@ You need the `percona-release` repository management tool that enables the desir

4. Enable the Percona Distribution for PostgreSQL repository

Percona provides [two repositories](repo-overview.md) for Percona Distribution for PostgreSQL. We recommend enabling the Major release repository to timely receive the latest updates. Since the `tde_heap` access method is still in the experimental stage, the `pg_tde` package is currently available from the experimental repository.
Percona provides [two repositories](repo-overview.md) for Percona Distribution for PostgreSQL. We recommend enabling the Major release repository to timely receive the latest updates.

```{.bash data-prompt="$"}
$ sudo percona-release enable ppg-{{pgversion17}} experimental
$ sudo percona-release enable ppg-{{pgversion17}}
```
nastena1606 marked this conversation as resolved.
Show resolved Hide resolved

6. Update the local cache
Expand All @@ -51,21 +54,14 @@ You need the `percona-release` repository management tool that enables the desir

## Install `pg_tde`

After all [preconditions](#preconditions) are met, install the extension.
The `pg_tde` extension is a part of the `percona-postgresql-{{pgversion17}} package`. So you only need to install this package.

1. Install Percona Distribution for PostgreSQL.

Run the following command to install Percona Distribution for PostgreSQL and the required packages:
After all [preconditions](#preconditions) are met, run the following command:

```bash
sudo apt-get install -y percona-postgresql-17 percona-postgresql-contrib percona-postgresql-server-dev-all
```

2. Install `pg_tde` packages

```bash
sudo apt-get install percona-postgresql-17-pg-tde
```
```bash
sudo apt-get install -y percona-postgresql-17
```


## Next step
Expand Down
33 changes: 5 additions & 28 deletions documentation/docs/yum.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ This tutorial shows how to install `pg_tde` with [Percona Distribution for Postg

## Preconditions

### Enable / disable modules

For RHEL8/Oracle Linux 8/Rocky Linux 8, disable the ``postgresql`` and ``llvm-toolset``modules:

```bash
sudo dnf module disable postgresql llvm-toolset
```

### Install `percona-release`

You need the `percona-release` repository management tool that enables the desired Percona repository for you.
Expand All @@ -29,31 +21,16 @@ You need the `percona-release` repository management tool that enables the desir
2. Enable the repository

```bash
sudo percona-release enable-only ppg-{{pgversion17}} experimental
```

3. ### For `percona-postgresql{{pgversion}}-devel` package

You need to install the `percona-postgresql{{pgversion}}-devel` package when working with pg_tde. This package requires dependencies that are not part of the Distribution, but can be installed from the specific repositories:

```
$ sudo dnf config-manager --set-enabled ol9_codeready_builder
sudo percona-release enable-only ppg-{{pgversion17}}
```

## Install `pg_tde`

1. Install Percona Distribution for PostgreSQL 17 and the required packages, run the following command:

```bash
sudo yum -y install percona-postgresql-client-common percona-postgresql-common percona-postgresql-server-dev-all percona-postgresql17 percona-postgresql17-contrib percona-postgresql17-devel percona-postgresql17-libs
```

2. Install `pg_tde` packages

```bash
sudo yum install percona-pg_tde_17
```
The `pg_tde` extension is a part of the `percona-postgresql{{pgversion17}} package`. So you only need to install this package.

```bash
sudo yum -y install percona-postgresql17
```

## Next steps

Expand Down
Loading