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
84f6fb81
Commit
84f6fb81
authored
Jan 02, 2013
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IsUnderPostmaster/EXEC_BACKEND confusion
parent
15658911
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
src/backend/bootstrap/bootstrap.c
src/backend/bootstrap/bootstrap.c
+4
-0
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+1
-3
src/backend/utils/init/postinit.c
src/backend/utils/init/postinit.c
+5
-0
No files found.
src/backend/bootstrap/bootstrap.c
View file @
84f6fb81
...
@@ -359,6 +359,10 @@ AuxiliaryProcessMain(int argc, char *argv[])
...
@@ -359,6 +359,10 @@ AuxiliaryProcessMain(int argc, char *argv[])
SetProcessingMode
(
BootstrapProcessing
);
SetProcessingMode
(
BootstrapProcessing
);
IgnoreSystemIndexes
=
true
;
IgnoreSystemIndexes
=
true
;
/* Initialize MaxBackends (if under postmaster, was done already) */
if
(
!
IsUnderPostmaster
)
InitializeMaxBackends
();
BaseInit
();
BaseInit
();
/*
/*
...
...
src/backend/tcop/postgres.c
View file @
84f6fb81
...
@@ -3654,10 +3654,8 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -3654,10 +3654,8 @@ PostgresMain(int argc, char *argv[], const char *username)
*/
*/
CreateDataDirLockFile
(
false
);
CreateDataDirLockFile
(
false
);
/* In EXEC_BACKEND, this was set via BackendParameters */
/* Initialize MaxBackends (if under postmaster, was done already) */
#ifndef EXEC_BACKEND
InitializeMaxBackends
();
InitializeMaxBackends
();
#endif
}
}
/* Early initialization */
/* Early initialization */
...
...
src/backend/utils/init/postinit.c
View file @
84f6fb81
...
@@ -427,6 +427,11 @@ pg_split_opts(char **argv, int *argcp, char *optstr)
...
@@ -427,6 +427,11 @@ pg_split_opts(char **argv, int *argcp, char *optstr)
* This must be called after modules have had the chance to register background
* This must be called after modules have had the chance to register background
* workers in shared_preload_libraries, and before shared memory size is
* workers in shared_preload_libraries, and before shared memory size is
* determined.
* determined.
*
* Note that in EXEC_BACKEND environment, the value is passed down from
* postmaster to subprocesses via BackendParameters in SubPostmasterMain; only
* postmaster itself and processes not under postmaster control should call
* this.
*/
*/
void
void
InitializeMaxBackends
(
void
)
InitializeMaxBackends
(
void
)
...
...
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