aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-17 14:35:34 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-17 14:35:34 +0000
commit3febb477e643c1cd37fc8d2d3e02685dce6d1196 (patch)
treeadc5f3696ec9001b0bda4d9c0336c50c251c2f62 /src/backend/tcop/postgres.c
parent85383214ea2b0085658a650b4e6b293464dcf045 (diff)
downloadpostgresql-3febb477e643c1cd37fc8d2d3e02685dce6d1196.tar.gz
postgresql-3febb477e643c1cd37fc8d2d3e02685dce6d1196.zip
Reorganize code to allow path-relative installs.
Create new get_* functions to access compiled-in paths and adjust if relative installs are to be used. Clean up substitute_libpath_macro() code.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 72750bfa623..f06340a54e4 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.406 2004/05/14 17:04:45 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.407 2004/05/17 14:35:31 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -2652,6 +2652,9 @@ PostgresMain(int argc, char *argv[], const char *username)
ereport(FATAL,
(errmsg("%s: could not locate postgres executable",
argv[0])));
+ if (strlen(pkglib_path) == 0)
+ get_pkglib_path(my_exec_path, pkglib_path);
+
/*
* Validate we have been given a reasonable-looking DataDir (if
* under postmaster, assume postmaster did this already).