mirror of https://github.com/postgres/postgres
We create a new WAL key during the extension init, which happens before the redo. This means that in case of a crash, pg_tde_save_principal_key_redo was rewriting a WAL _map file and destroying a newly created key. Since we emit an XLog record after the key was successfully written to the file (the file was created), we can safely assume that we should not change the file if it exists.pull/220/head
parent
e735727c8e
commit
1fa786fa29
Loading…
Reference in new issue