mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
514 B
15 lines
514 B
![]()
12 months ago
|
CREATE EXTENSION pg_tde;
|
||
|
|
||
|
SELECT pg_tde_add_key_provider_file('file-vault','/tmp/pg_tde_test_keyring.per');
|
||
|
SELECT pg_tde_set_principal_key('test-db-principal-key','file-vault');
|
||
|
|
||
|
DROP TABLE IF EXISTS pvactst;
|
||
|
CREATE TABLE pvactst (i INT, a INT[], p POINT) USING :tde_am;
|
||
|
INSERT INTO pvactst SELECT i, array[1,2,3], point(i, i+1) FROM generate_series(1,1000) i;
|
||
|
CREATE INDEX spgist_pvactst ON pvactst USING spgist (p);
|
||
|
UPDATE pvactst SET i = i WHERE i < 1000;
|
||
|
-- crash!
|
||
|
|
||
|
DROP TABLE pvactst;
|
||
|
DROP EXTENSION pg_tde;
|