Skip to content

Commit eb79aea

Browse files
committed
Move get_pkglib_path up into main.c too.
1 parent a9fad44 commit eb79aea

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/backend/main/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*
1515
* IDENTIFICATION
16-
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.78 2004/05/18 20:18:57 momjian Exp $
16+
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.79 2004/05/18 20:27:24 momjian Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -249,6 +249,8 @@ main(int argc, char *argv[])
249249
exit(1);
250250
}
251251

252+
get_pkglib_path(my_exec_path, pkglib_path);
253+
252254
/*
253255
* Now dispatch to one of PostmasterMain, PostgresMain, GucInfoMain,
254256
* SubPostmasterMain, pgstat_main, pgstat_mainChild or BootstrapMain

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.389 2004/05/18 20:18:57 momjian Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.390 2004/05/18 20:27:25 momjian Exp $
4141
*
4242
* NOTES
4343
*
@@ -688,9 +688,6 @@ PostmasterMain(int argc, char *argv[])
688688
(errmsg_internal("-----------------------------------------")));
689689
}
690690

691-
if (strlen(pkglib_path) == 0)
692-
get_pkglib_path(my_exec_path, pkglib_path);
693-
694691
#ifdef EXEC_BACKEND
695692
if (find_other_exec(argv[0], "postgres", PG_VERSIONSTR, postgres_exec_path) < 0)
696693
ereport(FATAL,

src/backend/tcop/postgres.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.408 2004/05/18 20:18:58 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.409 2004/05/18 20:27:25 momjian Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2549,9 +2549,6 @@ PostgresMain(int argc, char *argv[], const char *username)
25492549
}
25502550
Assert(DataDir);
25512551

2552-
if (strlen(pkglib_path) == 0)
2553-
get_pkglib_path(my_exec_path, pkglib_path);
2554-
25552552
/* Acquire configuration parameters */
25562553
if (IsUnderPostmaster)
25572554
{

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