Skip to content

Commit 7519ffb

Browse files
committed
pathman: check that module is in shared_preload_libraries
1 parent 73e2bbc commit 7519ffb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/pg_pathman/pg_pathman.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,13 @@ bms_print(Bitmapset *bms)
150150
void
151151
_PG_init(void)
152152
{
153-
#ifndef WIN32
154-
if (IsUnderPostmaster)
153+
if (!process_shared_preload_libraries_in_progress)
155154
{
156155
elog(ERROR, "Pathman module must be initialized in postmaster. "
157156
"Put the following line to configuration file: "
158157
"shared_preload_libraries='pg_pathman'");
159158
initialization_needed = false;
160159
}
161-
#endif
162160

163161
/* Request additional shared resources */
164162
RequestAddinShmemSpace(pathman_memsize());

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