Skip to content

Commit

Permalink
PG-1013 Updated the functions document (#370)
Browse files Browse the repository at this point in the history
* PG-1013 Updated the functions document

* Removed the pg_alter_keyring_provider

---------

Co-authored-by: Artem Gavrilov <[email protected]>
  • Loading branch information
nastena1606 and artemgavrilov authored Dec 18, 2024
1 parent 17c4bcf commit da25ee0
Showing 1 changed file with 8 additions and 1 deletion.
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:

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

0 comments on commit da25ee0

Please sign in to comment.