summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-05-20Rename static variables to avoid possible name conflicts on systems withTom Lane
dirty standard headers (eg AIX).
2004-05-20Small variable rename in exec.c.Bruce Momjian
2004-05-20Clean up find_my_exec to work cleaner.Bruce Momjian
Add Win32 code to look in the current directory before the path. Add code so memory is allocated using palloc in backend object files.
2004-05-20Fix speling.Tom Lane
2004-05-20Add ctype.h include for new macro in port.h.Bruce Momjian
2004-05-20Add $libdir to mingw and cygwin for installcheck too.Bruce Momjian
2004-05-19Improve error reporting behavior in parse_hba(): give more completeTom Lane
error report for getaddrinfo failures, point at correct token for syntax errors in all cases, don't log redundant messages.
2004-05-19Rename another irix file.Bruce Momjian
2004-05-19Rename irix5 port to irix.Bruce Momjian
2004-05-19Add end-of-dump markers for pg_dump and pg_dumpall.Bruce Momjian
2004-05-19Only do pkglib_path if needed.Bruce Momjian
2004-05-19Only do find_my_exec if it doesn't come from the postmaster.Bruce Momjian
2004-05-19Add get_pkglib_path to postmaster.cBruce Momjian
2004-05-19Move find_my_exec lower so elog() works, per Tom.Bruce Momjian
2004-05-19Re-add elog() to exec.c, per Tom.Bruce Momjian
2004-05-19Add MinGW to cases where libdir should be used for regression tests:Bruce Momjian
case $host_platform in *-*-cygwin*|*-*-mingw) PATH=$libdir:$PATH export PATH ;; esac
2004-05-19Win32 needs -lpgport for dll creation of ecpglib.Bruce Momjian
2004-05-19Supress verbose stderr messages while trying to find my exec path.Bruce Momjian
Per report from Christopher.
2004-05-19Minor correction for previous SQLSTATE patch: I changed dsqrt() to emit theNeil Conway
right error code previously, and this patch applies an analogous change to numeric_sqrt().
2004-05-19Win32 can't have the same function coming from two library object files,Bruce Momjian
so we make is_absolute_path a macro so libpq doesn't use path.o.
2004-05-19Allow zic to compile by defining a "" value for my_exec_path. It isn'tBruce Momjian
used by zic anyway.
2004-05-18setRuleCheckAsUser has to be applied to any subqueries appearing in aTom Lane
rule's event_qual, not only to the rule's action. Per example from Arturs Zoldners.
2004-05-18Move get_pkglib_path up into main.c too.Bruce Momjian
2004-05-18Move find_my_exec() way up into main.c so it is available to theBruce Momjian
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.
2004-05-18Update Makefile dependencies for Win32 timezones, per Claudio.Bruce Momjian
2004-05-18Clean up some relative path install issues with Claudio's help.Bruce Momjian
2004-05-17Reorganize code to allow path-relative installs.Bruce Momjian
Create new get_* functions to access compiled-in paths and adjust if relative installs are to be used. Clean up substitute_libpath_macro() code.
2004-05-17Rename backendbin to backend_exec in initdb.c.Bruce Momjian
2004-05-16Change ln(), log(), power(), and sqrt() to emit the correct SQLSTATENeil Conway
error codes for certain error conditions, as specified by SQL2003.
2004-05-14Remove an unused (and empty) header file.Neil Conway
2004-05-14Implement the width_bucket() function, per SQL2003. This commit only addsNeil Conway
a variant of the function for the 'numeric' datatype; it would be possible to add additional variants for other datatypes, but I haven't done so yet. This commit includes regression tests and minimal documentation; if we want developers to actually use this function in applications, we'll probably need to document what it does more fully.
2004-05-14Improve documentation for SQLSTATE error codes, per recent thread onNeil Conway
-patches.
2004-05-14Adjust find_my_exec/find_other_exec() so that the return parameter isBruce Momjian
last, not first. This fits our style better.
2004-05-14Remove extra 'then'.Bruce Momjian
2004-05-14Tighten parsing of boolean options to CREATE TYPE and related functions,Tom Lane
so as to deliver more useful error messages for mistakes like 'PASSEDBYVALUE = f'. Per gripe from Gaetano Mendola.
2004-05-14Propagate enlargeStringInfo() fixes into the equivalent code inTom Lane
pqexpbuffer.c. While a client-side failure doesn't seem like a security issue, it's still a bug.
2004-05-14Properly quote variable for makefile use.Bruce Momjian
2004-05-14Move unixware thread stuff into Makefile.unixware.Bruce Momjian
2004-05-13Force thread flags for all Unixware builds if threading is requested.Bruce Momjian
This is required because once you link with a library that uses threads, all references to that library have to use thread flags.
2004-05-13Reorganize backend code to more cleanly manage executable names andBruce Momjian
backend startup.
2004-05-13No need for gcc thread stuff anymore, only cc.Bruce Momjian
2004-05-13Remove warning about Unixware.Bruce Momjian
2004-05-13Fix Win32 bug with missing errno for strerror().Bruce Momjian
2004-05-12Tighten up overflow check in path_recv, pursuant to code review inspiredTom Lane
by Ken Ashcraft's report. I think there is no actual bug here since if the int32 value does wrap a little bit, palloc will still reject it. Still it's better that the code be obviously correct.
2004-05-12Here's a patch that will allow external modules like pl<lang> to setBruce Momjian
additional flags for the dlltool and dllwrap commands. More info here: http://archives.postgresql.org/pgsql-hackers/2004-05/msg00350.php Thomas Hallgren
2004-05-12Rename find_my_binary/find_other_binary toBruce Momjian
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 *.
2004-05-12Fix bug by passing arg[0] to find_my_binary().Bruce Momjian
2004-05-11Yawn ... still another place not quite ready for zero-column tables.Tom Lane
2004-05-11As part of the work for making relocatable installs, I have re-factoredBruce Momjian
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.
2004-05-11Add tests to enlargeStringInfo() to avoid possible buffer-overrun orTom Lane
infinite-loop problems if a bogus data length is passed.