Skip to content

Commit 559d535

Browse files
committed
Lessen library-loading log level.
Previously, messages were emitted at the LOG level every time a backend preloaded a library. That was acceptable (though unnecessary) for shared_preload_libraries; but it was excessive for local_preload_libraries and session_preload_libraries. Reduce to DEBUG1. Also, there was logic in the EXEC_BACKEND case to avoid repeated messages for shared_preload_libraries by demoting them to DEBUG2. DEBUG1 seems more appropriate there, as well, so eliminate that special case. Peter Geoghegan.
1 parent 36a3be6 commit 559d535

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/backend/utils/init/miscinit.c

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,6 @@ load_libraries(const char *libraries, const char *gucname, bool restricted)
12401240
{
12411241
char *rawstring;
12421242
List *elemlist;
1243-
int elevel;
12441243
ListCell *l;
12451244

12461245
if (libraries == NULL || libraries[0] == '\0')
@@ -1262,18 +1261,6 @@ load_libraries(const char *libraries, const char *gucname, bool restricted)
12621261
return;
12631262
}
12641263

1265-
/*
1266-
* Choose notice level: avoid repeat messages when re-loading a library
1267-
* that was preloaded into the postmaster. (Only possible in EXEC_BACKEND
1268-
* configurations)
1269-
*/
1270-
#ifdef EXEC_BACKEND
1271-
if (IsUnderPostmaster && process_shared_preload_libraries_in_progress)
1272-
elevel = DEBUG2;
1273-
else
1274-
#endif
1275-
elevel = LOG;
1276-
12771264
foreach(l, elemlist)
12781265
{
12791266
char *tok = (char *) lfirst(l);
@@ -1291,7 +1278,7 @@ load_libraries(const char *libraries, const char *gucname, bool restricted)
12911278
filename = expanded;
12921279
}
12931280
load_file(filename, restricted);
1294-
ereport(elevel,
1281+
ereport(DEBUG1,
12951282
(errmsg("loaded library \"%s\"", filename)));
12961283
pfree(filename);
12971284
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy