summaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)Author
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
2007-01-05Update CVS HEAD for 2007 copyright. Back branches are typically notBruce Momjian
back-stamped for this.
2007-01-03Fix btree_gist for new larger money type.Tom Lane
2006-12-28Add a defense to prevent core dumps if 8.2 version of rank_cd() is used withTom Lane
the 8.1 SQL function definition for it. Per report from Rajesh Kumar Mallah, such a DBA error doesn't seem at all improbable, and the cost of checking for it is not very high compared to the cost of running this function. (It would have been better to change the C name of the function so it wouldn't be called by the old SQL definition, but it's too late for that now in the 8.2 branch.)
2006-12-26Fix memory reallocation conditionTeodor Sigaev
2006-12-26Call srandom() instead of srand().Tatsuo Ishii
pgbench calls random() later, so it should have called srandom(). On most platforms except Windows srandom() is actually identical to srand(), so the bug only bites Windows users. per bug report from Akio Ishida.
2006-12-23Restructure operator classes to allow improved handling of cross-data-typeTom Lane
cases. Operator classes now exist within "operator families". While most families are equivalent to a single class, related classes can be grouped into one family to represent the fact that they are semantically compatible. Cross-type operators are now naturally adjunct parts of a family, without having to wedge them into a particular opclass as we had done originally. This commit restructures the catalogs and cleans up enough of the fallout so that everything still works at least as well as before, but most of the work needed to actually improve the planner's behavior will come later. Also, there are not yet CREATE/DROP/ALTER OPERATOR FAMILY commands; the only way to create a new family right now is to allow CREATE OPERATOR CLASS to make one by default. I owe some more documentation work, too. But that can all be done in smaller pieces once this infrastructure is in place.
2006-12-21Fix convertion for 'PFX flag N num'Teodor Sigaev
2006-12-05Fix typos in comments and error messages in HStore. Patch from FilipNeil Conway
Rembialkowski, with some additional fixes by myself.
2006-12-04Fix core dump of ispell for case of non-successfull initialization.Teodor Sigaev
Previous versions aren't affected. Fix synonym dictionary init: string should be malloc'ed, not palloc'ed. Bug introduced recently while fixing lowerstr().
2006-11-24Make contrib/isn pass the opr_sanity sanity checks: add missingTom Lane
commutator operators, and mark hash-opclass members as oprcanhash. This is a pretty ugly, brute-force solution, but it seems that getting rid of all these redundant-looking operators would require some tweaks in the core operator-resolution code to behave nicely, and I'm not willing to risk that just before RC1.
2006-11-23Fix lowercasing while parse OO dictionaryTeodor Sigaev
2006-11-22Avoid infinity calculations in rank_cdTeodor Sigaev
2006-11-21Fix type in return valueTeodor Sigaev