aboutsummaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-01-13 13:12:37 +0100
committerAndres Freund <andres@anarazel.de>2015-01-14 00:33:14 +0100
commit31c453165b5a656044ce1dbce89f5828c1c7e23c (patch)
treeccf0a682b390361d581a7116d6244d7feb80cd45 /src/include/miscadmin.h
parent2be82dcf17a18511df5153bcafe67a9c1387be1e (diff)
downloadpostgresql-31c453165b5a656044ce1dbce89f5828c1c7e23c.tar.gz
postgresql-31c453165b5a656044ce1dbce89f5828c1c7e23c.zip
Commonalize process startup code.
Move common code, that was duplicated in every postmaster child/every standalone process, into two functions in miscinit.c. Not only does that already result in a fair amount of net code reduction but it also makes it much easier to remove more duplication in the future. The prime motivation wasn't code deduplication though, but easier addition of new common code.
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r--src/include/miscadmin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index fc8bd7a9199..b94a94499b7 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -277,6 +277,9 @@ extern int trace_recovery(int trace_level);
extern char *DatabasePath;
/* now in utils/init/miscinit.c */
+extern void InitPostmasterChild(void);
+extern void InitStandaloneProcess(const char *argv0);
+
extern void SetDatabasePath(const char *path);
extern char *GetUserNameFromId(Oid roleid);