From 4948150bf445152c7819e060b98581a992c434d5 Mon Sep 17 00:00:00 2001 From: Andrew Pogrebnoy Date: Thu, 28 Mar 2024 18:46:29 +0200 Subject: [PATCH] Readme: how to create encrypted tables --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dfba34ca..6a5ba0bc 100644 --- a/README.md +++ b/README.md @@ -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