Skip to content

Commit 8a91100

Browse files
committed
Only do pkglib_path if needed.
1 parent 952c772 commit 8a91100

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/tcop/postgres.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.411 2004/05/19 19:39:27 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.412 2004/05/19 21:17:33 momjian Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2190,7 +2190,8 @@ PostgresMain(int argc, char *argv[], const char *username)
21902190
gettext("%s: could not locate my own executable path"),
21912191
argv[0]);
21922192

2193-
get_pkglib_path(my_exec_path, pkglib_path);
2193+
if (pkglib_path[0] == '\0')
2194+
get_pkglib_path(my_exec_path, pkglib_path);
21942195

21952196
/*
21962197
* Set default values for command-line options.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy