Update the changing database default tablespace#558
Open
Conversation
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.
jeltz
requested changes
Mar 31, 2026
| As a safeguard, `pg_tde` blocks the operation if encrypted objects are detected in the default tablespace. | ||
|
|
||
| Objects located outside the default tablespace are not affected by this command. | ||
| Only objects in the default tablespace are checked. Objects in other tablespaces are not affected by this validation. |
Collaborator
There was a problem hiding this comment.
You should add the suggestion that you can move the encrypted tables one by one.
Collaborator
Author
There was a problem hiding this comment.
Updated, added that users can use ALTER TABLE SET TABLESPACE to move tables individually, should we also suggest the ALTER INDEX SET TABLESPACE command?
Inform user they can use ALTER table to move tables individually.
jeltz
requested changes
Apr 3, 2026
| Only objects in the default tablespace are checked. Objects in other tablespaces are not evaluated by `pg_tde`. | ||
|
|
||
| Objects located outside the default tablespace are not affected by this command. | ||
| To move encrypted tables individually, use `ALTER TABLE ... SET TABLESPACE`. |
Collaborator
There was a problem hiding this comment.
A bit weird way to phrase it. Maybe it should be more like: "A workaround is to ...".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.