summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-04-15Fix description how to create conversion function.Tatsuo Ishii
2007-04-13Allow \timing in psql to have a better resolution than ~15ms on Windows.Magnus Hagander
ITAGAKI Takahiro
2007-04-13Enable building contrib/xml2 if configured using --with-libxml.Andrew Dunstan
If this breaks things due to missing libxslt, then I'll have to revert it, but let's see if it breaks the buildfarm. Workarounds in case libxslt is missing include: . don't configure with libxml, or . don't build contrib modules from the contrib Makefile (use the individual module Makefiles instead), or . change the xml2 Makefile
2007-04-13Add O_DIRECT support on Windows.Magnus Hagander
ITAGAKI Takahiro
2007-04-12Fixes for RESET SESSION patch, per Alvaro. Fix a typo in the RESETNeil Conway
ref page (sorry, my fault!), and simplify the coding of ResetTempTableNamespace().
2007-04-12Rearrange mdsync() looping logic to avoid the problem that a sufficientlyTom Lane
fast flow of new fsync requests can prevent mdsync() from ever completing. This was an unforeseen consequence of a patch added in Mar 2006 to prevent the fsync request queue from overflowing. Problem identified by Heikki Linnakangas and independently by ITAGAKI Takahiro; fix based on ideas from Takahiro-san, Heikki, and Tom. Back-patch as far as 8.1 because a previous back-patch introduced the problem into 8.1 ...
2007-04-12Cancel pending fsync requests during WAL replay of DROP DATABASE, per bugTom Lane
report from David Darville. Back-patch as far as 8.1, which may or may not have the problem but it seems a safe change anyway.
2007-04-12Install debugger symbols (in their own directory)Magnus Hagander
2007-04-12Enable IPV6 when building with MSVC.Magnus Hagander
2007-04-12RESET SESSION, plus related new DDL commands. Patch from Marko Kreen,Neil Conway
reviewed by Neil Conway. This patch adds the following DDL command variants: RESET SESSION, RESET TEMP, RESET PLANS, CLOSE ALL, and DEALLOCATE ALL. RESET SESSION is intended for use by connection pool software and the like, in order to reset a client session to something close to its initial state. Note that while most of these command variants can be executed inside a transaction block (but are not transaction-aware!), RESET SESSION cannot. While this is inconsistent, it is intended to catch programmer mistakes: RESET SESSION in an open transaction block is probably unintended.
2007-04-11Code review for btree page split WAL reduction patch. Make it actually workTom Lane
(original code *always* created a full-page image for the left page, thus leaving the intended savings unrealized), avoid risk of not having enough room on the page during xlog restore, squeeze out another couple bytes in the xlog record, clean up neglected comments.
2007-04-09Minor tweaking of index special-space definitions so that the variousTom Lane
index types can be reliably distinguished by examining the special space on an index page. Per my earlier proposal, plus the realization that there's no need for btree's vacuum cycle ID to cycle through every possible 16-bit value. Restricting its range a little costs nearly nothing and eliminates the possibility of collisions. Memo to self: remember to make bitmap indexes play along with this scheme, assuming that patch ever gets accepted.
2007-04-09Add cancel handlers so it's possible to Ctrl-C clusterdb, reindexdbMagnus Hagander
and vacuumdb. ITAGAKI Takahiro, with minor fixes from me.
2007-04-08Make CLUSTER MVCC-safe. Heikki LinnakangasTom Lane
2007-04-08Support syntax "CLUSTER table USING index", which is more logical.Bruce Momjian
Holger Schurig
2007-04-06Don't remove the 'alias' field from flattened rangetable entries;Tom Lane
there are some corner cases where this is needed by ruleutils.c for proper display of variables during EXPLAIN.
2007-04-06Make 'col IS NULL' clauses be indexable conditions.Tom Lane
Teodor Sigaev, with some kibitzing from Tom Lane.
2007-04-06Only run contrib check if there is a MakefileAndrew Dunstan
2007-04-06Now that core functionality is depending on autoconf's AC_C_BIGENDIAN to beTom Lane
right, there seems precious little reason to have a pile of hand-maintained endianness definitions in src/include/port/*.h. Get rid of those, and make the couple of places that used them depend on WORDS_BIGENDIAN instead.
2007-04-06Support varlena fields with single-byte headers and unaligned storage.Tom Lane
This commit breaks any code that assumes that the mere act of forming a tuple (without writing it to disk) does not "toast" any fields. While all available regression tests pass, I'm not totally sure that we've fixed every nook and cranny, especially in contrib. Greg Stark with some help from Tom Lane
2007-04-05Update XML error message text for missing libxml; update regressionBruce Momjian
output to match.
2007-04-05Continue running contrib regression tests if one fails, and exitMagnus Hagander
with errorlevel 1 is >= 1 checks failed.
2007-04-05Make sure list of tests is cleared out before getting the new listMagnus Hagander
of tests. Per Andrew Dunstan.
2007-04-05Improve documentation/warning when --with-libxml is not used in theBruce Momjian
installation.
2007-04-04improve test headingsAndrew Dunstan
2007-04-04Don't install files for xml2 when building without libxml.Andrew Dunstan
2007-04-04Remove plpython casts C source code casts:Bruce Momjian
It removes last remaining casts inside struct definitions. Such usage is bad practice, as it hides problems from compiler. Reason for the cast is popular practice in some circles to define functions as foo(MyObj *) instead of foo(PyObject *) thus avoiding a local variable inside functions and make direct calling easier. As pl/python does not use such style, the casts were unnecessary from the start. Marko Kreen
2007-04-04Don't install files for sslinfo when building without openssl.Magnus Hagander
Per Andrew Dunstan.
2007-04-03Remove the CheckpointStartLock in favor of having backends show whether theyTom Lane
are in their commit critical sections via flags in the ProcArray. Checkpoint can watch the ProcArray to determine when it's safe to proceed. This is a considerably better solution to the original problem of race conditions between checkpoint and transaction commit: it speeds up commit, since there's one less lock to fool with, and it prevents the problem of checkpoint being delayed indefinitely when there's a constant flow of commits. Heikki, with some kibitzing from Tom.
2007-04-03Allow pl/pythonu >= version 2.3 to return boolean, rather than 1/0.Bruce Momjian
Marko Kreen
2007-04-03Allow PL/PythonU to compile on Python 2.5. Change needed because of APIBruce Momjian
changes in Python. Marko Kreen
2007-04-03Update comment for new thread_test location.Bruce Momjian
2007-04-03Decouple the values of TOAST_TUPLE_THRESHOLD and TOAST_MAX_CHUNK_SIZE.Tom Lane
Add the latter to the values checked in pg_control, since it can't be changed without invalidating toast table content. This commit in itself shouldn't change any behavior, but it lays some necessary groundwork for experimentation with these toast-control numbers. Note: while TOAST_TUPLE_THRESHOLD can now be changed without initdb, some thought still needs to be given to needs_toast_table() in toasting.c before unleashing random changes.
2007-04-02Allow NOTIFY/LISTEN/UNLISTEN to only take relation names, notBruce Momjian
schema.relation, because the notify code only honors the relation name. schema.relation will now generate a syntax error.
2007-04-02Check length of enum literals on definition and input to make sure they will ↵Andrew Dunstan
fit in a name field and not cause syscache errors.
2007-04-02Fix check_sql_fn_retval to allow the case where a SQL function declared toTom Lane
return void ends with a SELECT, if that SELECT has a single result that is also of type void. Without this, it's hard to write a void function that calls another void function. Per gripe from Peter. Back-patch as far as 8.0.
2007-04-02xcopy can only deal with forward-slashed paths when it's quoted - neededMagnus Hagander
for "vcregress check" to work. Per report from Dave Page.
2007-04-02Support enum data types. Along the way, use macros for the values ofTom Lane
pg_type.typtype whereever practical. Tom Dunstan, with some kibitzing from Tom Lane.
2007-04-01Update catversion for new XML mapping functionsPeter Eisentraut
2007-04-01Update SQL conformance for SQL to XML mappingsPeter Eisentraut
2007-04-01Mapping schemas and databases to XML and XML Schema.Peter Eisentraut
Refactor and document the remaining mapping code.
2007-04-01Complete cleaningPeter Eisentraut
2007-03-30Add some instrumentation to the bgwriter, through the stats collector.Magnus Hagander
New view pg_stat_bgwriter, and the functions required to build it.
2007-03-30Fix oversight in coding of _bt_start_vacuum: we can't assume that the LWLockTom Lane
will be released by transaction abort before _bt_end_vacuum gets called. If either of these "can't happen" errors actually happened, we'd freeze up trying to acquire an already-held lock. Latest word is that this does not explain Martin Pitt's trouble report, but it still looks like a bug.
2007-03-29pg_char_to_encoding() was redundant in initdb becauseBruce Momjian
pg_valid_server_encoding() returns the same result if the encoding is valid. ITAGAKI Takahiro
2007-03-29Install include filesMagnus Hagander
2007-03-29exec_parse_message neglected to copy parameter type array into theTom Lane
required memory context when handling client-specified parameter types for an unnamed statement. Per report from Kris Jurka.
2007-03-29Make ECPG regression tests use native threading instead of pthreads, now thatMagnus Hagander
ecpglib supports it. Change configure (patch from Bruce) and msvc build system to no longer require pthreads on win32, since all parts of postgresql can be thread-safe using the native platform functions.
2007-03-29- Added patch by Magnus Hagander <magnus@hagander.net> to use nativeMichael Meskes
win32 threads. - Fixed regression tests to run threading tests.
2007-03-29Teach CLUSTER to skip writing WAL if not needed (ie, not using archiving)Tom Lane
--- Simon. Also, code review and cleanup for the previous COPY-no-WAL patches --- Tom.