summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Fix localization support for multibyte encoding and C locale.Teodor Sigaev2007-01-153-52/+144
| | | | Slightly reworked patch from Tatsuo Ishii
* Replace unnecessary DISABLE_ZLIB define in pgcrypto with HAVE_LIBZ from core.Alvaro Herrera2007-01-142-8/+5
| | | | Patch from Marko Kreen.
* Update copyright script to allow spaces around dash.Bruce Momjian2007-01-101-2/+2
|
* Update copyright yearTatsuo Ishii2007-01-101-2/+2
|
* Update CVS HEAD for 2007 copyright. Back branches are typically notBruce Momjian2007-01-0512-19/+19
| | | | back-stamped for this.
* Fix btree_gist for new larger money type.Tom Lane2007-01-031-1/+1
|
* Add a defense to prevent core dumps if 8.2 version of rank_cd() is used withTom Lane2006-12-281-1/+17
| | | | | | | | 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.)
* Fix memory reallocation conditionTeodor Sigaev2006-12-261-2/+2
|
* Call srandom() instead of srand().Tatsuo Ishii2006-12-261-2/+2
| | | | | | | 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.
* Restructure operator classes to allow improved handling of cross-data-typeTom Lane2006-12-232-7/+7
| | | | | | | | | | | | | | | | 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.
* Fix convertion for 'PFX flag N num'Teodor Sigaev2006-12-211-1/+1
|
* Fix typos in comments and error messages in HStore. Patch from FilipNeil Conway2006-12-052-8/+8
| | | | Rembialkowski, with some additional fixes by myself.
* Fix core dump of ispell for case of non-successfull initialization.Teodor Sigaev2006-12-042-4/+4
| | | | | | | Previous versions aren't affected. Fix synonym dictionary init: string should be malloc'ed, not palloc'ed. Bug introduced recently while fixing lowerstr().
* Make contrib/isn pass the opr_sanity sanity checks: add missingTom Lane2006-11-241-73/+878
| | | | | | | | 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.
* Fix lowercasing while parse OO dictionaryTeodor Sigaev2006-11-231-3/+3
|
* Avoid infinity calculations in rank_cdTeodor Sigaev2006-11-221-1/+11
|
* Fix type in return valueTeodor Sigaev2006-11-211-1/+1
|
* Fix bug http://archives.postgresql.org/pgsql-bugs/2006-10/msg00258.php.Teodor Sigaev2006-11-206-62/+131
| | | | | | | Fix string's length calculation for recoding, fix strlower() to avoid wrong assumption about length of recoded string (was: recoded string is no greater that source, it may not true for multibyte encodings) Thanks to Thomas H. <me@alternize.com> and Magnus Hagander <mha@sollentuna.net>
* Minor code cleanup for pgcrypto: for UDFs declared to be strict, checkingNeil Conway2006-11-102-65/+4
| | | | for NULL-ness of function arguments is wasted code.
* Fix two typos.Neil Conway2006-11-081-2/+2
|
* New README, forgotten when docs was updatedTeodor Sigaev2006-11-081-166/+167
|
* Get rid of some unnecessary dependencies on DataDir: wherever possible,Tom Lane2006-11-061-58/+56
| | | | | the backend should rely on its working-directory setting instead. Also do some message-style police work in contrib/adminpack.
* Add description of new featuresTeodor Sigaev2006-10-313-90/+503
|
* Code cleanup for pg_buffercache, from Mark Kirkwood.Tom Lane2006-10-221-66/+34
|
* pgbench: More fix with handling default scaling factor in the defaultTatsuo Ishii2006-10-213-3/+31
| | | | | | scenarios. With multiple clinets, only the first client got the right scaling factor and this gave a illusion of better performance in case of the scaling factor greater than 1.
* Marginal code cleanups in pg_logdir_ls: use ReadDir not readdir,Tom Lane2006-10-201-20/+18
| | | | and avoid scribbling on its result (might be safe but why risk it)
* Add externs for optarg/optind where apparently needed. Per Magnus.Tom Lane2006-10-191-1/+3
|
* Handle missing M_PI the same way we've been doing in the core code,Tom Lane2006-10-191-4/+5
| | | | instead of inserting an MSVC dependency.
* Further MSVC portability fixes from Magnus.Tom Lane2006-10-191-1/+4
|
* Fix a couple of places that were assuming debug_query_string couldn'tTom Lane2006-10-191-2/+5
| | | | be NULL ... seems an unsafe assumption.
* Clean up local redeclarations of variables with DLLIMPORT, per reportTom Lane2006-10-193-19/+4
| | | | from Magnus that MSVC complains about this.
* Fix typo.Neil Conway2006-10-191-2/+2
|
* Simplify contrib Makefiles by removing unnecessary SRCS macro,Tom Lane2006-10-193-11/+6
| | | | per Magnus.
* Rename function 'isexists' and 'isdefined' toTeodor Sigaev2006-10-115-31/+43
| | | | | | | | 'exist' and 'defined' accordingly. Old names are saved not mentioned in docs - for compatibility with old applications. Per discussion http://archives.postgresql.org/pgsql-hackers/2006-10/msg00571.php
* On platforms that have getrlimit(RLIMIT_STACK), use it to ensure thatTom Lane2006-10-071-9/+10
| | | | | | | | max_stack_depth is not set to an unsafe value. This commit also provides configure-time checking for <sys/resource.h>, and cleans up some perhaps-unportable code associated with use of that include file and getrlimit().
* Make use of qsort_arg in several places that were formerly using klugyTom Lane2006-10-053-28/+25
| | | | | | static variables. This avoids any risk of potential non-reentrancy, and in particular offers a much cleaner workaround for the Intel compiler bug that was affecting ginutil.c.
* Improve error messages from to_tsquery per yesterday's discussion:Tom Lane2006-10-041-8/+18
| | | | | provide the bad input, and be sure to mention that we are talking about a tsearch query.
* pgindent run for 8.2.Bruce Momjian2006-10-0473-5724/+7208
|
* Update tsearch2 README.Bruce Momjian2006-10-021-3/+2
| | | | Robert Treat
* Remove accented characters in comments, to avoid failures when thisTom Lane2006-10-011-2/+2
| | | | | file is read with an incompatible client_encoding setting. Per report from Tim N. van der Leeuw.
* Suppress compiler warnings.Tom Lane2006-09-301-2/+4
|
* uninstall script for sslinfoTom Lane2006-09-302-0/+10
|
* uninstall script for pg_freespacemapTom Lane2006-09-302-1/+9
|
* uninstall script for pgrowlocks - Josh DrakeTom Lane2006-09-302-1/+7
|
* Add uninstall script for adminpack - Josh DrakeTom Lane2006-09-302-0/+9
|
* Fix bugs in plpgsql and ecpg caused by assuming that isspace() would onlyTom Lane2006-09-227-33/+36
| | | | | | | | | return true for exactly the characters treated as whitespace by their flex scanners. Per report from Victor Snezhko and subsequent investigation. Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde char-vs-unsigned-char issue. I won't miss <ctype.h> when we are finally able to stop using it.
* Fix free space map to correctly track the total amount of FSM space neededTom Lane2006-09-213-47/+47
| | | | | | | even when a single relation requires more than max_fsm_pages pages. Also, make VACUUM emit a warning in this case, since it likely means that VACUUM FULL or other drastic corrective measure is needed. Per reports from Jeff Frost and others of unexpected changes in the claimed max_fsm_pages need.
* Change patternsel (LIKE/regex selectivity estimation) so that if thereTom Lane2006-09-201-4/+36
| | | | | | | | | is a large enough histogram, it will use the number of matches in the histogram to derive a selectivity estimate, rather than the admittedly pretty bogus heuristics involving examining the pattern contents. I set 'large enough' at 100, but perhaps we should change that later. Also apply the same technique in contrib/ltree's <@ and @> estimator. Per discussion with Stefan Kaltenbrunner and Matteo Beccati.
* Rename xml_valid() to xml_is_well_formed(), but provide a temporaryTom Lane2006-09-164-8/+22
| | | | | | alias with the old name for backwards compatibility. Per discussion, the old name is actively wrong because validity and well-formedness have different meanings in XML.
* Fix some more uses of str[n]casecmp that should be pg_str[n]casecmp.Tom Lane2006-09-161-6/+6
|