summaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)Author
2007-05-03Tweak hash index AM to use the new ReadOrZeroBuffer bufmgr API when fetchingTom Lane
pages it intends to zero immediately. Just to show there is some use for that function besides WAL recovery :-). Along the way, fold _hash_checkpage and _hash_pageinit calls into _hash_getbuf and friends, instead of expecting callers to do that separately.
2007-04-22Make some functions immutable.Peter Eisentraut
thanks Marko Kreen
2007-04-22Fix typoPeter Eisentraut
2007-04-21Contrib module uuid-ossp for generating UUID values using the OSSP UUIDPeter Eisentraut
library. New configure option --with-ossp-uuid to activate.
2007-04-15Add --with-libxslt configure optionAndrew Dunstan
2007-04-14revert change to build xml2 until a better fix is foundAndrew Dunstan
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-08Add -F option to set fillfactor for tellers, accounts and branches.Tatsuo Ishii
Patch contributed by Pavan Deolasee. Along with Japanese doc modification by Tatsuo Ishii.
2007-04-07Add the usage count statistics to the information available inBruce Momjian
contrib/pgbuffercache. Greg Smith
2007-04-06Enhance pgbench -l option to add timestamp. Patch contributed by GregTatsuo Ishii
Smith. Along with Japanese doc updation by Tasuo Ishii. > This patch changes the way pgbench outputs its latency log files so that > every transaction gets a timestamp and notes which transaction type was > executed. It's a one-line change that just dumps some additional > information that was already sitting in that area of code. I also made a > couple of documentation corrections and clarifications on some of the more > confusing features of pgbench. > > It's straightforward to parse log files in this format to analyze what > happened during the test at a higher level than was possible with the > original format. You can find some rough sample code to convert this > latency format into CVS files and then into graphs at > http://www.westnet.com/~gsmith/content/postgresql/pgbench.htm which I'll > be expanding on once I get all my little patches sent in here.
2007-04-06Various pgbench enhancements. Patch contributed by ITAGAKI Takahiro.Tatsuo Ishii
Also tweak README.pgbench/README.pgbench_jis: Remove history after pgbench was added to PostgreSQL contrib module. Those info was not only redundant since it has already been in CVS log, but also incomplete. -------------------------------------------------------------------------- The attached is a patch to optimize contrib/pgbench using new 8.3 features. - Use DROP IF EXISTS to suppress errors for initial loadings. - Use a combination of TRUNCATE and COPY to reduce WAL on creating the accounts table. Also, there are some cosmetic changes. - Change the output of -v option from "starting full vacuum..." to "starting vacuum accounts..." in reflection of the fact. - Shape duplicated error checks into executeStatement(). There is a big performance win in "COPY with no WAL" feature. Thanks for the efforts! --------------------------------------------------------------------------
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-02Fix caching of unsuccessful initialization of parser or configuration.Teodor Sigaev
Per report from Listmail <lists@peufeu.com>
2007-03-28Replace 4-clause licensed blf.[ch] with blowfish implementationNeil Conway
from PuTTY with is under minimal BSD/MIT license. Marko Kreen.
2007-03-28Fix uninitialized-variable bug.Tom Lane
2007-03-26Add checking of end of line in parsing stopword list. Thanks to sharp eyes ↵Teodor Sigaev
of Tom lane
2007-03-26Fix stopword and synonym files parsing bug in MSVC build, per report fromTeodor Sigaev
Magnus Hagander. Also, now it ignores space symbol after stopwords.
2007-03-25Clean up the representation of special snapshots by including a "methodTom Lane
pointer" in every Snapshot struct. This allows removal of the case-by-case tests in HeapTupleSatisfiesVisibility, which should make it a bit faster (I didn't try any performance tests though). More importantly, we are no longer violating portable C practices by assuming that small integers are distinct from all pointer values, and HeapTupleSatisfiesDirty no longer has a non-reentrant API involving side-effects on a global variable. There were a couple of places calling HeapTupleSatisfiesXXX routines directly rather than through the HeapTupleSatisfiesVisibility macro. Since these places had to be changed anyway, I chose to make them go through the macro for uniformity. Along the way I renamed HeapTupleSatisfiesSnapshot to HeapTupleSatisfiesMVCC to emphasize that it's only used with MVCC-type snapshots. I was sorely tempted to rename HeapTupleSatisfiesVisibility to HeapTupleSatisfiesSnapshot, but forebore for the moment to avoid confusion and reduce the likelihood that this patch breaks some of the pending patches. Might want to reconsider doing that later.
2007-03-22Fix parser bug on Windows with UTF8 encoding and C locale, the reason wasTeodor Sigaev
sizeof(wchar_t) = 2 instead of 4.
2007-03-16Fix uninitialized value in pgstatindex leading to invalid values beingAlvaro Herrera
reported in some cases. Report and patch from Tatsuhito Kasahara. Also fix a couple of other bugs I noticed in skimming the surrounding code.
2007-03-15Make use of plancache module for SPI plans. In particular, since plpgsqlTom Lane
uses SPI plans, this finally fixes the ancient gotcha that you can't drop and recreate a temp table used by a plpgsql function. Along the way, clean up SPI's API a little bit by declaring SPI plan pointers as "SPIPlanPtr" instead of "void *". This is cosmetic but helps to forestall simple programming mistakes. (I have changed some but not all of the callers to match; there are still some "void *"'s in contrib and the PL's. This is intentional so that we can see if anyone's compiler complains about it.)
2007-03-14Add GIN support for pg_trgm. From Guillaume Smet <guillaume.smet@gmail.com>Teodor Sigaev
with minor editorization by me. Hstore improvements * add operation hstore ? text - excat equivalent of exist() * remove undocumented behaviour of contains operation with NULL value * now 'key'::text=>NULL returns '"key"=>NULL' instead of NULL * Add GIN support for contains and exist operations * Add GiST support for exist operatiion * improve regression tests
2007-03-14Add GIN support for pg_trgm. From Guillaume Smet <guillaume.smet@gmail.com>Teodor Sigaev
with minor editorization by me.
2007-03-13Set stderr to unbuffered for pgbench on win32.Magnus Hagander
ITAGAKI Takahiro
2007-03-07Athough cube is a varlena type, nowhere was a detoasting of cube's value, soTeodor Sigaev
fix it. Add macroses DatumGetNDBOX, PG_GETARG_NDBOX and PG_RETURN_NDBOX. Backpatch for 8.2 too. Previous versions use version 0 calling conventions. And fmgr code detoast values for user-defined functions.
2007-03-03Add resetStringInfo(), which clears the content of a StringInfo, andNeil Conway
fixup various places in the tree that were clearing a StringInfo by hand. Making this function a part of the API simplifies client code slightly, and avoids needlessly peeking inside the StringInfo interface.
2007-03-03Add logging to /contrib/pg_standby if -k couldn't clean up the log file.Bruce Momjian
Darcy Buskermolen
2007-02-28Fix up several contrib modules that were using varlena datatypes in ↵Tom Lane
not-so-obvious ways. I'm not totally sure that I caught everything, but at least now they pass their regression tests with VARSIZE/SET_VARSIZE defined to reverse byte order.
2007-02-27Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len).Tom Lane
Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with VARSIZE and VARDATA, and as a consequence almost no code was using the longer names. Rename the length fields of struct varlena and various derived structures to catch anyplace that was accessing them directly; and clean up various places so caught. In itself this patch doesn't change any behavior at all, but it is necessary infrastructure if we hope to play any games with the representation of varlena headers. Greg Stark and Tom Lane
2007-02-13Update /contrib/fuzzystrmatch error message to mention bytes, not justBruce Momjian
'length', which can be characters.
2007-02-12Fix backend crash in parsing incorrect tsquery.Teodor Sigaev
Per report from Jon Rosebaugh <jon@inklesspen.com>
2007-02-10Fix pg_standby to build on msvc.Magnus Hagander
2007-02-09Remove useless CPPFLAGS.Peter Eisentraut
2007-02-09Add $PostgreSQL$ marker to contrib makefiles.Peter Eisentraut
2007-02-09Replace useless uses of := by = in makefiles.Peter Eisentraut
2007-02-08Add /contrib/pg_standby:Bruce Momjian
pg_standby is a production-ready program that can be used to create a Warm Standby server. Other configuration is required as well, all of which is described in the main server manual. Simon Riggs
2007-02-08Add /contrib/pg_standby:Bruce Momjian
pg_standby is a production-ready program that can be used to create a Warm Standby server. Other configuration is required as well, all of which is described in the main server manual. Simon Riggs
2007-02-08Normalize fgets() calls to use sizeof() for calculating the buffer sizePeter Eisentraut
where possible, and fix some sites that apparently thought that fgets() will overwrite the buffer by one byte. Also add some strlcpy() to eliminate some weird memory handling.
2007-02-07Replace some strncpy() by strlcpy().Peter Eisentraut
2007-02-07Use memcpy() instead of strncpy() for copying into varlena structures.Peter Eisentraut
2007-02-01Fix two more regression tests whose expected outputs were not updatedNeil Conway
for the recent may/might cleanup.
2007-02-01Wording cleanup for error messages. Also change can't -> cannot.Bruce Momjian
Standard English uses "may", "can", and "might" in different ways: may - permission, "You may borrow my rake." can - ability, "I can lift that log." might - possibility, "It might rain today." Unfortunately, in conversational English, their use is often mixed, as in, "You may use this variable to do X", when in fact, "can" is a better choice. Similarly, "It may crash" is better stated, "It might crash".
2007-01-31Allow GIN's extractQuery method to signal that nothing can satisfy the query.Teodor Sigaev
In this case extractQuery should returns -1 as nentries. This changes prototype of extractQuery method to use int32* instead of uint32* for nentries argument. Based on that gincostestimate may see two corner cases: nothing will be found or seqscan should be used. Per proposal at http://archives.postgresql.org/pgsql-hackers/2007-01/msg01581.php PS tsearch_core patch should be sightly modified to support changes, but I'm waiting a verdict about reviewing of tsearch_core patch.
2007-01-26Squelch some VC++ compiler warnings. Mark float literals with the "f"Neil Conway
suffix, to distinguish them from doubles. Make some function declarations and definitions use the "const" qualifier for arguments consistently. Ignore warning 4102 ("unreferenced label"), because such warnings are always emitted by bison-generated code. Patch from Magnus Hagander.
2007-01-22Adjust pgbench so it won't spit up on non-select queries returningTom Lane
tuples, which is entirely possible with custom scripts (consider RETURNING, EXPLAIN, etc).
2007-01-15Fix localization support for multibyte encoding and C locale.Teodor Sigaev
Slightly reworked patch from Tatsuo Ishii
2007-01-14Replace unnecessary DISABLE_ZLIB define in pgcrypto with HAVE_LIBZ from core.Alvaro Herrera
Patch from Marko Kreen.
2007-01-10Update copyright script to allow spaces around dash.Bruce Momjian
2007-01-10Update copyright yearTatsuo Ishii