summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-11-17Use pg_usleep() not sleep(), per Andrew Dunstan.Tom Lane
2004-11-17Miscellaneous Cygwin build fixes from Reini Urban.Tom Lane
2004-11-17Add variant regression file to support BSDen that underflow to plus zero insteadTom Lane
of minus zero. Per Andrew Dunstan.
2004-11-17Install include/port header files, and fix PGXS build to use them.Tom Lane
Fabien COELHO
2004-11-17Adjust SHLIB_LINK for cygwin case.Tom Lane
Reini Urban
2004-11-17Be sure length limit passed to snprintf matches what malloc was given.Tom Lane
Just paranoia ...
2004-11-17Minor adjustment of message style.Tom Lane
2004-11-17Win32 build cleanups, from Andrew Dunstan.Neil Conway
2004-11-17Remove debugging printf from #ifdef WIN32 section.Neil Conway
2004-11-17Micro-optimization of markpos() and restrpos() in btree and hash indexes.Neil Conway
Rather than using ReadBuffer() to increment the reference count on an already-pinned buffer, we should use IncrBufferRefCount() as it is faster and does not require acquiring the BufMgrLock.
2004-11-17Don't allow pg_start_backup() to be invoked if archive_command has notNeil Conway
been defined. Patch from Gavin Sherry, editorializing by Neil Conway.
2004-11-17Fix Win32 problems with signals and sockets, by making the forkexec codeTom Lane
even uglier than it was already :-(. Also, on Windows only, use temporary shared memory segments instead of ordinary files to pass over critical variable values from postmaster to child processes. Magnus Hagander
2004-11-16Prevent a backend crash when processing CREATE TABLE commands withNeil Conway
more than 65K columns, or when the created table has more than 65K columns due to adding inherited columns from parent relations. Fix a similar crash when processing SELECT queries with more than 65K target list entries. In all three cases we would eventually detect the error and elog, but the check was being made too late.
2004-11-16Translation updatePeter Eisentraut
2004-11-16Adjust safety restrictions for plperl functions. Andrew Dunstan'sTom Lane
patch, but allow srand and disallow sprintf as per subsequent discussion.
2004-11-16Suppress duplicate rules for lib$(NAME).a on WIN32 and Cygwin.Tom Lane
Andrew Dunstan
2004-11-16Use dynamically-sized buffers in pgwin32_is_service().Tom Lane
Magnus Hagander
2004-11-16Rethink plpgsql's way of handling SPI execution during an exception block.Tom Lane
We don't really want to start a new SPI connection, just keep using the old one; otherwise we have memory management problems as illustrated by John Kennedy's bug report of today. This requires a bit of a hack to ensure the SPI stack state is properly restored, but then again what we were doing before was a hack too, strictly speaking. Add a regression test to cover this case.
2004-11-15Don't quote the value of EDITOR on Unix, only on Windows. Per discussion.Tom Lane
2004-11-14Use English-style quotes in error messages, per Serguei Mokhov.Tom Lane
2004-11-14Remove GUC USERLIMIT variable category, making the affected variablesTom Lane
plain SUSET instead. Also delay processing of options received in client connection request until after we know if the user is a superuser, so that SUSET values can be set that way by legitimate superusers. Per recent discussion.
2004-11-14There is no need for ReadBuffer() call sites to check that the returnedNeil Conway
buffer is valid, as ReadBuffer() will elog on error. Most of the call sites of ReadBuffer() got this right, but this patch fixes those call sites that did not.
2004-11-13Not entirely sure when this broke, but libpq's VC++ build is currentlyBruce Momjian
lacking pqsignal which is now required. This was found and fixed for VC++ by Shachar Shemesh, I simply duplicated the fix for the Borland makefile (untested, as I don't have that compiler). Dave Page
2004-11-12Fix obsolete comments.Tom Lane
2004-11-12> I think in addition the system global name "sharemem.1" should be made moreBruce Momjian
> pg specific, like "PostgreSQL.1". I have not done this since a new compile > would not detect a running old beta. But now would be the time (or never). Zeugswetter Andreas
2004-11-12Remember to close the file on failure (pretty much redundant, really,Tom Lane
since this path will lead to postmaster exit anyway...)
2004-11-11Un-break custom_variable_classes kluge ... mea culpa.Tom Lane
2004-11-11pg_restore --help improvements, from Tom Lane:Bruce Momjian
! printf(_(" -d, --dbname=NAME connect to database name\n")); ! printf(_(" -C, --create create the target database\n"));
2004-11-11Remove obsolete comment from btbuild() and hashbuild(): we no longer useNeil Conway
a global variable to control building indexes.
2004-11-10List VALUE as a keyword.Michael Meskes
2004-11-09Allow planner to fold "stable" functions to constants when formingTom Lane
selectivity estimates, per recent discussion.
2004-11-09Put in place some defenses against being fooled by accidental match ofTom Lane
shared memory segment ID. If we can't access the existing shmem segment, it must not be relevant to our data directory. If we can access it, then attach to it and check for an actual match to the data directory. This should avoid some cases of failure-to-restart-after-boot without introducing any significant risk of failing to detect a still-running old backend.
2004-11-09Get rid of perror(), substitute some better phrased error messages.Peter Eisentraut
malloc() doesn't set errno, so most uses were buggy anyway.
2004-11-09Translation updatesPeter Eisentraut
2004-11-09Clarify some stringsPeter Eisentraut
2004-11-09Translation updatePeter Eisentraut
2004-11-09Clarify some error messagesPeter Eisentraut
2004-11-09Translation updatePeter Eisentraut
2004-11-09Delete the `remove-old-headers' target, as it is no longer useful. PatchNeil Conway
from Alvaro Herrera.
2004-11-09Use a hopefully-more-reliable method of detecting default selectivityTom Lane
estimates when combining the estimates for a range query. As pointed out by Miquel van Smoorenburg, the existing check for an impossible combined result would quite possibly fail to detect one default and one non-default input. It seems better to use the default range query estimate in such cases. To do so, add a check for an estimate of exactly DEFAULT_INEQ_SEL. This is a bit ugly because it introduces additional coupling between clauselist_selectivity and scalarltsel/scalargtsel, but it's not like there wasn't plenty already...
2004-11-08Update workding on why we use is_absolute_path() as a macro.Bruce Momjian
2004-11-08Allow win32/cygwin link against the first matching library symbol ratherBruce Momjian
than erroring out. This is the Unix behavior.
2004-11-08Kris Jurka pointed out that the qualified_name production wasn'tTom Lane
working as intended --- for some reason, FROM a.b.c was getting parsed as if it were a function name and not a qualified name. I think there must be a bug in bison, because it should have complained that the grammar was ambiguous. Anyway, fix it along the same lines previously used for func_name vs columnref, and get rid of the right-recursion in attrs that seems to have confused bison.
2004-11-08Fix unportable code in SockAddr_cidr_mask: you can't assume thatTom Lane
shifting left by full word width gives zero. Per bug report from Tyson Thomson.
2004-11-07New translationPeter Eisentraut
2004-11-07Translation updatePeter Eisentraut
2004-11-07Translation updatesPeter Eisentraut
2004-11-07Removes duplicate slashes from the path in canonicalize_path(). ItBruce Momjian
preserve double leading slashes on Win32. e.g. ////a////b => /a/b
2004-11-06Add code to find_my_exec() to resolve a symbolic link down to theTom Lane
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.
2004-11-06Simplify relative-path logic, on the assumption that compiled-in pathsTom Lane
won't have trivial differences in their common prefix.