mirror of https://github.com/postgres/postgres
parent
7931b29616
commit
5f84e8c92d
@ -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; |
||||
|
Loading…
Reference in new issue