| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
| |
who use it scan the relevant source files for their own catalog. It
creates a bit of duplicate work for translators, but it gets the job done
for now.
|
|
|
|
|
|
| |
actual executable location. This allows people to continue to use
setups where, eg, postmaster is symlinked from a convenient place.
Per gripe from Josh Berkus.
|
|
|
|
|
|
| |
everywhere not just some places, get rid of . and .. when joining path
sections together. This should eliminate most of the ugly paths like
/foo/bar/./baz that we've been generating.
|
|
|
|
| |
in miscadmin.h.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
of '.' or '..'. Extend canonicalize_path() to trim off trailing occurrences
of these things, and use it to fix up paths where needed (which I think is
only after places where we trim the last path component, but maybe some
others will turn up). Fixes Josh's complaint that './initdb' does not
work.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
running as a service on windows <= 2000. Required to make the pg_ctl
service wrapper to work at all.
Magnus Hagander
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
extensive change then what was suggested. I found the file path.c that
contained a lot of "Unix/Windows" agnostic functions so I added a function
there instead and removed the PATHSEP declaration in exec.c altogether. All
to keep things from scattering all over the code.
I also took the liberty of changing the name of the functions
"first_path_sep" and "last_path_sep". Where I come from (and I'm apparently
not alone given the former macro name PATHSEP), they should be called
"first_dir_sep" and "last_dir_sep". The new function I introduced, that
actually finds path separators, is now the "first_path_sep". The patch
contains changes on all affected places of course.
I also changed the documentation on dynamic_library_path to reflect the
chagnes.
Thomas Hallgren
|
|
|
|
|
|
|
| |
CurrentMemoryContext caused compile problems.
Recode to not make a copy of the PATH but copy parts out into MAXPGPATH
variables.
|
|
|
|
| |
strict.
|
| |
|
| |
|
|
|
|
|
|
| |
Add Win32 code to look in the current directory before the path.
Add code so memory is allocated using palloc in backend object files.
|
| |
|
|
|
|
| |
Per report from Christopher.
|
|
|
|
|
|
|
|
| |
timezone code and other places.
Remove elog() calls from find_my_exec; do fprintf(stderr) instead. We
can then remove the exec.c handling in the makefile because it doesn't
have to be built to suppress elog calls.
|
| |
|
|
|
|
|
|
|
| |
Create new get_* functions to access compiled-in paths and adjust if
relative installs are to be used.
Clean up substitute_libpath_macro() code.
|
|
|
|
| |
last, not first. This fits our style better.
|
|
|
|
| |
backend startup.
|
| |
|
|
|
|
|
|
|
|
|
| |
find_my_exec/find_other_exec(). Remove passing of progname to these
functions as they can find that out from argv[0], which they already
have.
Make get_progname return const char *, and update all progname variables
to be const char *.
|
|
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.
|