Skip to content

Commit 971c416

Browse files
bojanserafimovtristan957
authored andcommitted
Add startup logs (#293)
1 parent eaea991 commit 971c416

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,7 @@ PostmasterMain(int argc, char *argv[])
10231023
/*
10241024
* process any libraries that should be preloaded at postmaster start
10251025
*/
1026+
ereport(LOG, (errmsg("postgres processing shared_preload_libraries")));
10261027
process_shared_preload_libraries();
10271028

10281029
/*
@@ -1045,7 +1046,9 @@ PostmasterMain(int argc, char *argv[])
10451046
/*
10461047
* Give preloaded libraries a chance to request additional shared memory.
10471048
*/
1049+
ereport(LOG, (errmsg("postgres processing shmem request")));
10481050
process_shmem_requests();
1051+
ereport(LOG, (errmsg("postgres done processing shmem request")));
10491052

10501053
/*
10511054
* Now that loadable modules have had their chance to request additional
@@ -1083,7 +1086,9 @@ PostmasterMain(int argc, char *argv[])
10831086
/*
10841087
* Set up shared memory and semaphores.
10851088
*/
1089+
ereport(LOG, (errmsg("postgres setting up shared memory")));
10861090
reset_shared();
1091+
ereport(LOG, (errmsg("postgres done setting up shared memory")));
10871092

10881093
/*
10891094
* Estimate number of openable files. This must happen after setting up

src/backend/utils/init/miscinit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ load_libraries(const char *libraries, const char *gucname, bool restricted)
16741674
filename = expanded;
16751675
}
16761676
load_file(filename, restricted);
1677-
ereport(DEBUG1,
1677+
ereport(LOG,
16781678
(errmsg_internal("loaded library \"%s\"", filename)));
16791679
if (expanded)
16801680
pfree(expanded);

0 commit comments

Comments
 (0)