]> granicus.if.org Git - postgresql/commit
As part of the work for making relocatable installs, I have re-factored
authorBruce Momjian <bruce@momjian.us>
Tue, 11 May 2004 21:57:15 +0000 (21:57 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 11 May 2004 21:57:15 +0000 (21:57 +0000)
commitfda15b351a8d5ac085e309ceda25e3a71cca27d7
tree14329482d138feded83642194d280405ff4c070b
parent270c9aa34ad0448806ece6eb04f44bd60a5519dc
As part of the work for making relocatable installs, I have re-factored
all the code that looks for other binaries.  I move FindExec into
port/exec.c (and renamed it to find_my_binary()).  I also added
find_other_binary that looks for another binary in the same directory as
the calling program, and checks the version string.

The only behavior change was that initdb and pg_dump would look in the
hard-coded bindir directory if it can't find the requested binary in the
same directory as the caller.  The new code throws an error.  The old
behavior seemed too error prone for version mismatches.
15 files changed:
configure
configure.in
src/Makefile.global.in
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c
src/backend/utils/init/Makefile
src/bin/initdb/Makefile
src/bin/initdb/initdb.c
src/bin/pg_dump/Makefile
src/bin/pg_dump/pg_dumpall.c
src/include/miscadmin.h
src/include/port.h
src/port/exec.c [moved from src/backend/utils/init/findbe.c with 55% similarity]
src/port/path.c
src/port/pipe.c