Skip to content

Commit

Permalink
Readme: how to create encrypted tables (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
dAdAbird authored Mar 28, 2024
1 parent be3f58a commit 766600e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,17 @@ FUNCTION pg_tde_set_master_key (
```sql
SELECT pg_tde_set_master_key('my-master-key','file');
```
You are all set to create encrypted tables using `pg_tde`.

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

## Build from source

Expand Down

0 comments on commit 766600e

Please sign in to comment.