diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-05-19 21:17:33 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-05-19 21:17:33 +0000 |
commit | 8a911003791e015db49a83552d7367ab3b4549d8 (patch) | |
tree | 484ed848fc201bcb637dc51dd509e8b627adb57f /src | |
parent | 952c772158e04861d5026d4b2379113099c4f674 (diff) | |
download | postgresql-8a911003791e015db49a83552d7367ab3b4549d8.tar.gz postgresql-8a911003791e015db49a83552d7367ab3b4549d8.zip |
Only do pkglib_path if needed.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/tcop/postgres.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index d4d1cd94738..1c3e0c28475 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.411 2004/05/19 19:39:27 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.412 2004/05/19 21:17:33 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -2190,7 +2190,8 @@ PostgresMain(int argc, char *argv[], const char *username) gettext("%s: could not locate my own executable path"), argv[0]); - get_pkglib_path(my_exec_path, pkglib_path); + if (pkglib_path[0] == '\0') + get_pkglib_path(my_exec_path, pkglib_path); /* * Set default values for command-line options. |