From 3c8f275aa91f7295f7dd5902cfd520f9e665ad22 Mon Sep 17 00:00:00 2001 From: eren Date: Fri, 8 Apr 2016 15:47:24 +0300 Subject: [PATCH] Clarify Error Message Related to shared_preload_libraries Fixes #363 This change modifies the error message given when Citus is attempted to be loaded other than shared_preload_libraries. Explanations have been extended with that shared_preload_parameters parameter is in postgresql.conf and citus should be at the beginning. --- src/backend/distributed/shared_library_init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/distributed/shared_library_init.c b/src/backend/distributed/shared_library_init.c index 01b961066..4db469989 100644 --- a/src/backend/distributed/shared_library_init.c +++ b/src/backend/distributed/shared_library_init.c @@ -83,7 +83,10 @@ _PG_init(void) if (!process_shared_preload_libraries_in_progress) { ereport(ERROR, (errmsg("Citus can only be loaded via shared_preload_libraries"), - errhint("Add citus to shared_preload_libraries."))); + errhint("Add citus to shared_preload_libraries configuration " + "variable in postgresql.conf in master and workers. Note " + "that citus should be at the beginning of " + "shared_preload_libraries."))); } /*