added how to create encrypted tables to github.io docs (#160)

Signed-off-by: Kai Wagner <kai.wagner@percona.com>
pull/209/head
Kai Wagner 1 year ago committed by GitHub
parent 766600e3d1
commit 9c9f6e077b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      documentation/docs/setup.md

@ -54,6 +54,17 @@ Load the `pg_tde` at the start time. The extension requires additional shared me
sudo systemctl restart postgresql-16
```
7. You are all set to create encrypted tables. For that, specify `USING pg_tde` in the `CREATE TABLE` statement.
**For example**:
```sql
CREATE TABLE albums (
album_id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
artist_id INTEGER,
title TEXT NOT NULL,
released DATE NOT NULL
) USING pg_tde;
```
## Keyring configuration
Create the keyring configuration file with the following contents:
@ -91,4 +102,4 @@ Create the keyring configuration file with the following contents:
This datafile is created and managed by PostgreSQL, the only requirement is that `postgres` should be able to write to the specified path.
This setup is intended for development, and stores the keys unencrypted in the specified data file.
This setup is intended for development, and stores the keys unencrypted in the specified data file.

Loading…
Cancel
Save