Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit559d535

Browse files
committed
Lessen library-loading log level.
Previously, messages were emitted at the LOG level every time abackend preloaded a library. That was acceptable (though unnecessary)for shared_preload_libraries; but it was excessive forlocal_preload_libraries and session_preload_libraries. Reduce toDEBUG1.Also, there was logic in the EXEC_BACKEND case to avoid repeatedmessages for shared_preload_libraries by demoting them toDEBUG2. DEBUG1 seems more appropriate there, as well, so eliminatethat special case.Peter Geoghegan.
1 parent36a3be6 commit559d535

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-
intelevel;
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-
#ifdefEXEC_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)

[8]ページ先頭

©2009-2025 Movatter.jp