File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.190 2004/07/31 00:45:30 tgl Exp $
11
+ * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.191 2004/07/31 17:57:11 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -225,6 +225,14 @@ BootstrapMain(int argc, char *argv[])
225
225
if (!IsUnderPostmaster )
226
226
MemoryContextInit ();
227
227
228
+ /* Compute paths, if we didn't inherit them from postmaster */
229
+ if (my_exec_path [0 ] == '\0' )
230
+ {
231
+ if (find_my_exec (argv [0 ], my_exec_path ) < 0 )
232
+ elog (FATAL , "%s: could not locate my own executable path" ,
233
+ argv [0 ]);
234
+ }
235
+
228
236
/*
229
237
* process command arguments
230
238
*/
@@ -262,7 +270,6 @@ BootstrapMain(int argc, char *argv[])
262
270
SetConfigOption ("client_min_messages" , debugstr ,
263
271
PGC_POSTMASTER , PGC_S_ARGV );
264
272
pfree (debugstr );
265
- break ;
266
273
}
267
274
break ;
268
275
case 'F' :
You can’t perform that action at this time.
0 commit comments