You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the changing database default tablespace (#558)
Update the database default tablespace behavior description to include alter/set command.
Previously the explanation was not quite helpful, as in the user can technically still use the command, previously we said it was not supported which is not true.
Copy file name to clipboardExpand all lines: documentation/docs/index/tde-limitations.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,16 +49,17 @@ Limitations of `pg_tde` {{release}}:
49
49
50
50
The `pg_upgrade` tool does not properly handle the internal encryption keys used by `pg_tde`, which prevents the upgraded cluster from decrypting encrypted relations.
51
51
52
-
## Changing the database default tablespace
52
+
## `ALTER DATABASE ... SET TABLESPACE`
53
53
54
-
!!! warning "Changing the database default tablespace is not supported with `pg_tde`"
55
-
Changing the default tablespace of a database is currently not supported when using`pg_tde`.
54
+
!!! warning "Changing a database tablespace has limited support with `pg_tde`"
55
+
The `ALTER DATABASE ... SET TABLESPACE` command bypasses PostgreSQL's storage manager (SMGR), which`pg_tde` relies on to enforce encryption.
56
56
57
-
This operation bypasses PostgreSQL's storage manager (SMGR), which is not supported by `pg_tde`.
57
+
- If encrypted objects exist in the database's default tablespace, the operation is refused.
58
+
- If no encrypted objects are present in the default tablespace, the operation is allowed.
58
59
59
-
As a safeguard, `pg_tde` blocks the operation if encrypted objects are detected in the default tablespace.
60
+
Only objects in the default tablespace are checked. Objects in other tablespaces are not evaluated by `pg_tde`.
60
61
61
-
Objects located outside the default tablespace are not affected by this command.
62
+
To move encrypted tables individually, use `ALTER TABLE ... SET TABLESPACE`, which operates through SMGR and is compatible with `pg_tde`.
0 commit comments