Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5a7e1a18
Commit
5a7e1a18
authored
May 19, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move find_my_exec lower so elog() works, per Tom.
parent
ecc198bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
13 deletions
+15
-13
src/backend/main/main.c
src/backend/main/main.c
+1
-11
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+6
-1
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+8
-1
No files found.
src/backend/main/main.c
View file @
5a7e1a18
...
...
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.
79 2004/05/18 20:27:2
4 momjian Exp $
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.
80 2004/05/19 18:58:4
4 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -241,16 +241,6 @@ main(int argc, char *argv[])
#endif
/* !WIN32 */
}
if
(
find_my_exec
(
argv
[
0
],
my_exec_path
)
<
0
)
{
fprintf
(
stderr
,
gettext
(
"%s: could not locate my own executable path"
),
argv
[
0
]);
exit
(
1
);
}
get_pkglib_path
(
my_exec_path
,
pkglib_path
);
/*
* Now dispatch to one of PostmasterMain, PostgresMain, GucInfoMain,
* SubPostmasterMain, pgstat_main, pgstat_mainChild or BootstrapMain
...
...
src/backend/postmaster/postmaster.c
View file @
5a7e1a18
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.39
0 2004/05/18 20:27:25
momjian Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.39
1 2004/05/19 18:58:44
momjian Exp $
*
* NOTES
*
...
...
@@ -461,6 +461,11 @@ PostmasterMain(int argc, char *argv[])
IgnoreSystemIndexes
(
false
);
if
(
find_my_exec
(
argv
[
0
],
my_exec_path
)
<
0
)
elog
(
FATAL
,
gettext
(
"%s: could not locate my own executable path"
),
argv
[
0
]);
/*
* Options setup
*/
...
...
src/backend/tcop/postgres.c
View file @
5a7e1a18
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.4
09 2004/05/18 20:27:25
momjian Exp $
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.4
10 2004/05/19 18:58:44
momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -2185,6 +2185,13 @@ PostgresMain(int argc, char *argv[], const char *username)
/* Set up reference point for stack depth checking */
stack_base_ptr
=
&
stack_base
;
if
(
find_my_exec
(
argv
[
0
],
my_exec_path
)
<
0
)
elog
(
FATAL
,
gettext
(
"%s: could not locate my own executable path"
),
argv
[
0
]);
get_pkglib_path
(
my_exec_path
,
pkglib_path
);
/*
* Set default values for command-line options.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment