Percona-Lab / pg_tde

MIT License
107 stars 19 forks source link

Remove 'percona_tde.pg_tde_key_provider' user catalog #230

Closed codeforall closed 2 months ago

codeforall commented 2 months ago

Remove 'percona_tde.pg_tde_key_provider' user catalog and introduce provider info file for key providers

This commit removes the 'percona_tde.pg_tde_key_provider' user catalog and replaces it with a provider info file for saving key providers. This change ensures that the key provider information can be accessed during recovery, as the user catalogs cannot be relied upon in such scenarios.

The commit maintains the current API functions, so callers will not experience any differences in functionality or usage after this change.

Additionally, the commit adjusts how the shared memory manager retrieves information about the number of LWLocks required by the extension, optimizing the process.

TODO: Implement xlog message for cleaning up the provider info file during recovery operations to ensure consistency and avoid potential issues.