From d9a7a7edefee161e754629978aa3c76659f3eaa3 Mon Sep 17 00:00:00 2001 From: Zsolt Parragi Date: Tue, 26 Nov 2024 17:09:21 +0000 Subject: [PATCH] PG-1225: Improve missing shared_preload_library error handling Change the severity of the error message and also return early to avoid a later fatal error and postgres closing the connection. --- src/pg_tde.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pg_tde.c b/src/pg_tde.c index 1acf89fc..1d993ae2 100644 --- a/src/pg_tde.c +++ b/src/pg_tde.c @@ -102,7 +102,8 @@ _PG_init(void) { if (!process_shared_preload_libraries_in_progress) { - elog(WARNING, "pg_tde can only be loaded at server startup. Restart required."); + elog(ERROR, "pg_tde can only be loaded at server startup. Restart required."); + return; } #ifdef PERCONA_EXT