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

Commit4056279

Browse files
committed
Only do find_my_exec if it doesn't come from the postmaster.
1 parent9ee3310 commit4056279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 2 additions & 2 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.410 2004/05/1918:58:44 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.411 2004/05/1919:39:27 momjian Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2185,7 +2185,7 @@ PostgresMain(int argc, char *argv[], const char *username)
21852185
/* Set up reference point for stack depth checking */
21862186
stack_base_ptr=&stack_base;
21872187

2188-
if (find_my_exec(argv[0],my_exec_path)<0)
2188+
if (my_exec_path[0]=='\0'&&find_my_exec(argv[0],my_exec_path)<0)
21892189
elog(FATAL,
21902190
gettext("%s: could not locate my own executable path"),
21912191
argv[0]);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp