-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store rel key type along with internal key
This is needed for ALTER TABLESPACE as pg_tdeam_relation_copy_data gets only the old rlocator and needs to know how to properly save the key in the new rlocator. Also during ALTER ... TABLESPACE, tde_mdcreate gets called and tde_smgr_get_key is trying to get the internal key. But there is no key moved to the new table space since it is called during RelationCreateStorage() and pg_tde.map file might not exist. And it's ok in this case but it results in an error. This commit introduces an option not to have a pg_tde.map (treated as no key).
- Loading branch information
Showing
4 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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