Skip to content

New created table is not encrypted #155

Answered by dAdAbird
gurucubano asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gurucubano
You have to specify USING pg_tde during the table creation for it to be encrypted. Otherwise it will be created as the unseal Postgres table.

For example:

CREATE TABLE albums (
    album_id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
    artist_id INTEGER,
    title TEXT NOT NULL,
    released DATE NOT NULL
) USING pg_tde;

It is quite unclear from the docs and the Readme. We'll update it.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ImTheKai
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants