Skip to content

Commit

Permalink
Merge pull request #334 from dutow/vercheck
Browse files Browse the repository at this point in the history
PG-1126: Check that Percona API version is the same
  • Loading branch information
dutow authored Nov 12, 2024
2 parents 503e403 + 43c4dd7 commit 5bb6f09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pg_tde.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/

#include "postgres.h"
#include "utils/percona.h"
#include "funcapi.h"
#include "pg_tde.h"
#include "transam/pg_tde_xact_handler.h"
Expand Down Expand Up @@ -102,6 +103,8 @@ _PG_init(void)
elog(WARNING, "pg_tde can only be loaded at server startup. Restart required.");
}

check_percona_api_version();

InitializePrincipalKeyInfo();
InitializeKeyProviderInfo();
#ifdef PERCONA_EXT
Expand Down

0 comments on commit 5bb6f09

Please sign in to comment.