forked from percona/pg_tde
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified 001_basic tap test to verify that the data on disk is encrypted
- Loading branch information
Showing
2 changed files
with
24 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
CREATE EXTENSION pg_tde; | ||
-- server restart | ||
CREATE TABLE test_enc(id SERIAL,k INTEGER,PRIMARY KEY (id)) USING pg_tde_basic; | ||
INSERT INTO test_enc (k) VALUES (5),(6); | ||
CREATE TABLE test_enc(id SERIAL,k VARCHAR(32),PRIMARY KEY (id)) USING pg_tde_basic; | ||
INSERT INTO test_enc (k) VALUES ('foobar'),('barfoo'); | ||
SELECT * FROM test_enc ORDER BY id ASC; | ||
1|5 | ||
2|6 | ||
1|foobar | ||
2|barfoo | ||
-- server restart | ||
SELECT * FROM test_enc ORDER BY id ASC; | ||
1|5 | ||
2|6 | ||
1|foobar | ||
2|barfoo | ||
TABLEFILE FOUND: yes | ||
|
||
CONTAINS FOO (should be empty): | ||
DROP TABLE test_enc; | ||
DROP EXTENSION pg_tde; |