diff --git a/documentation/docs/functions.md b/documentation/docs/functions.md index 2ddd4006..c91d3c8d 100644 --- a/documentation/docs/functions.md +++ b/documentation/docs/functions.md @@ -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: +``` +SELECT pg_tde_is_encrypted('schema.table_name'); +```