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 the functions document #370

Merged
merged 6 commits into from
Dec 18, 2024
Merged
Changes from all commits
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
9 changes: 8 additions & 1 deletion documentation/docs/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,19 @@ SELECT pg_tde_rotate_principal_key('name-of-the-new-principal-key', NULL);
SELECT pg_tde_rotate_principal_key(NULL, 'name-of-the-new-provider');
```


## pg_tde_is_encrypted

Tells if a table is using the `pg_tde` access method or not.
Tells if a table is encrypted using the `tde_heap` access method or not.

To verify a table encryption, run the following statement:

```
SELECT pg_tde_is_encrypted('table_name');
```

You can also verify if the table in a custom schema is encrypted. Pass teh schema name for the function as follows:
nastena1606 marked this conversation as resolved.
Show resolved Hide resolved

```
SELECT pg_tde_is_encrypted('schema.table_name');
```
Loading