Skip to content

Commit

Permalink
Update documentation/docs/decrypt.md
Browse files Browse the repository at this point in the history
Co-authored-by: Anastasia Alexandrova <[email protected]>
  • Loading branch information
ImTheKai and nastena1606 authored Jan 17, 2025
1 parent 6722be4 commit a0a4825
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion documentation/docs/decrypt.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ The output returns `f` meaning that the table is no longer encrypted.
Note that the indexes and WAL files will no longer be encrypted.

!!! hint
ALTER TABLE <tablename> SET access method removes the [hint bits](https://wiki.postgresql.org/wiki/Hint_Bits) and as such this can lead to heavy writes to the database table, even if you're just reading. A plain SELECT, count(*), or VACUUM on the entire table will check every tuple for visibility and set its hint bits. So we recommend you do a simple "count(*)" on your tables, after the ALTER.
Running a plain `SELECT, count(*)`, or `VACUUM` commands on the entire table will check every tuple for visibility and set its hint bits. Therefore, after executing the ALTER command, run a simple "count(*)" on your tables:
```
SELECT COUNT(*) FROM mytable;

## Method 2. Create a new unencrypted table on the base of the encrypted one

Expand Down

0 comments on commit a0a4825

Please sign in to comment.