mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Reorganize backend code to more cleanly manage executable names and
backend startup.
This commit is contained in:
@@ -11,14 +11,14 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/bsdi.c,v 1.23 2003/11/29 19:51:54 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/bsdi.c,v 1.24 2004/05/13 22:45:02 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#include "postgres.h"
|
||||
#ifndef HAVE_DLOPEN
|
||||
|
||||
extern char pg_pathname[];
|
||||
extern char my_exec_path[];
|
||||
|
||||
void *
|
||||
pg_dlopen(char *filename)
|
||||
@@ -31,7 +31,7 @@ pg_dlopen(char *filename)
|
||||
*/
|
||||
if (!dl_initialized)
|
||||
{
|
||||
if (dld_init(dld_find_executable(pg_pathname)))
|
||||
if (dld_init(dld_find_executable(my_exec_path)))
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/linux.c,v 1.27 2003/11/29 19:51:54 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/linux.c,v 1.28 2004/05/13 22:45:02 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -43,7 +43,7 @@ pg_dlopen(char *filename)
|
||||
*/
|
||||
if (!dl_initialized)
|
||||
{
|
||||
if (dld_init(dld_find_executable(pg_pathname)))
|
||||
if (dld_init(dld_find_executable(my_exec_path)))
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
|
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/ultrix4.c,v 1.19 2003/11/29 19:51:54 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/port/dynloader/ultrix4.c,v 1.20 2004/05/13 22:45:02 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "dl.h"
|
||||
#include "utils/dynamic_loader.h"
|
||||
|
||||
extern char pg_pathname[];
|
||||
extern char my_exec_path[];
|
||||
|
||||
void *
|
||||
pg_dlopen(char *filename)
|
||||
@@ -31,7 +31,7 @@ pg_dlopen(char *filename)
|
||||
*/
|
||||
if (!dl_initialized)
|
||||
{
|
||||
if (!dl_init(pg_pathname))
|
||||
if (!dl_init(my_exec_path))
|
||||
return NULL;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user