summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Arrays are toastable. (At least if you initdb, which I didn't force.)Tom Lane2000-07-221-3/+6
| | | | | | | Remove a bunch of crufty code for large-object-based arrays, which is superseded by TOAST and likely hasn't worked in a long time anyway. Clean up array code a little, and in particular eliminate its habit of scribbling on the input array (ie, modifying the input tuple :-().
* Stat functions now in main system, contrib code no longer needed.Tom Lane2000-07-174-474/+0
|
* Automatic dependency trackingPeter Eisentraut2000-07-162-3/+3
| | | | | The .DEFAULT rule in backend/Makefile is harmful -- removed. Replace `::' rules by `:'.
* Remove a bunch of unused configure tests, in particular cases wherePeter Eisentraut2000-07-122-7/+5
| | | | | | | | | | * the result is not recorded anywhere * the result is not used anywhere * the result is only used in some places, whereas others have been getting away with it * the result is used improperly Also make command line options handling a little better (e.g., --disable-locale, while redundant, should really still *dis*able).
* Another round of those unportable config/build changes :-/Peter Eisentraut2000-07-0925-757/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to build with OpenSSL out of the box. Fix thusly exposed bit rot. Although it compiles now, getting this to do something useful is left as an exercise. * Fix Kerberos options to defer checking for required libraries until all the other libraries are checked for. * Change default odbcinst.ini and krb5.srvtab path to PREFIX/etc. * Install work around for Autoconf's install-sh relative path anomaly. Get rid of old INSTL_*_OPTS variables, now that we don't need them anymore. * Use `gunzip -c' instead of g?zcat. Reportedly broke on AIX. * Look for only one of readline.h or readline/readline.h, not both. * Make check for PS_STRINGS cacheable. Don't test for the header files separately. * Disable fcntl(F_SETLK) test on Linux. * Substitute the standard GCC warnings set into CFLAGS in configure, don't add it on in Makefile.global. * Sweep through contrib tree to teach makefiles standard semantics. ... and in completely unrelated news: * Make postmaster.opts arbitrary options-aware. I still think we need to save the environment as well.
* Fix misuse of StrNCpy to copy and add null to non-null-terminated data.Tom Lane2000-07-071-2/+2
| | | | | | | Does not work since it fetches one byte beyond the source data, and when the phase of the moon is wrong, the source data is smack up against the end of backend memory and you get SIGSEGV. Don't laugh, this is a fix for an actual user bug report.
* Update textin() and textout() to new fmgr style. This is just phaseTom Lane2000-07-052-9/+9
| | | | | one of updating the whole text datatype, but there are so dang many calls of these two routines that it seems worth a separate commit.
* Makefile cleanup from Karel.Bruce Momjian2000-07-0411-22/+22
|
* Added CVS headerJan Wieck2000-07-041-0/+2
| | | | Jan
* New contrib module for statistical mathematicsJan Wieck2000-07-044-0/+492
| | | | Jan
* Now that I look at it, is_stopword() is broken and always has been.Tom Lane2000-07-041-4/+3
| | | | Doesn't anyone remember how to program a binary search??
* Result of strcmp() is a signed int. Per bug reportTom Lane2000-07-041-1/+1
| | | | from Paul McGarry.
* Very small changes in the contrib's pg_dumplo in the attache.Bruce Momjian2000-07-038-73/+5
| | | | | | | | | | | | | | | | | And: Note, Bruce I found in the contrib tree any files that we forget remove during contrib cleaning. Please remove these files: contrib/lo/test.sql contrib/pg_dumplo/Makefile.out contrib/pgbench/pgbench_jis.doc contrib/spi/new_example.example contrib/spi/README.MAX Thanks. Karel
* Remove old README files.Bruce Momjian2000-06-1917-0/+0
|
* Add missing /contrib filesBruce Momjian2000-06-1919-0/+1418
|
* Update to /contrib from Karel.Bruce Momjian2000-06-1987-1645/+257
|
* Cleanup README Makefile installs.Bruce Momjian2000-06-1621-219/+54
|
* Remove old doc files, now README.Bruce Momjian2000-06-155-170/+0
|
* Add missing /contrib files to CVS.Bruce Momjian2000-06-1529-0/+2308
|
* /contrib patch from Karel.Bruce Momjian2000-06-1572-4495/+1141
|
* Well, pg_dumplo is in attache. It is really simple program and now is notBruce Momjian2000-06-125-0/+427
| | | | | | | | | | | | prepared for dirtribution (it needs a little changes). I can change and work on this, but I need motivation :-) And Peter, I know and I agree that standard PG tree is not good space for all interfaces and for all tools based on PG, but LO is PG feature and we haven't backup tool for LO. Karel Zak
* Update sequence-related functions to new fmgr style. Remove downcasing,Tom Lane2000-06-111-4/+6
| | | | | | | | quote-stripping, and acl-checking tasks for these functions from the parser, and do them at function execution time instead. This fixes the failure of pg_dump to produce correct output for nextval(Foo) used in a rule, and also eliminates the restriction that the argument of these functions must be a parse-time constant.
* Another round of updates for new fmgr, mostly in the datetime code.Tom Lane2000-06-092-5/+9
|
* Update array_iterator to use new fmgr interface.Tom Lane2000-05-291-20/+21
|
* Generated header files parse.h and fmgroids.h are now copied intoTom Lane2000-05-2921-123/+49
| | | | | the src/include tree, so that -I backend is no longer necessary anywhere. Also, clean up some bit rot in contrib tree.
* Second round of fmgr changes: triggers are now invoked in new style,Tom Lane2000-05-2917-217/+186
| | | | CurrentTriggerData is history.
* Fix WARN->NOTICE in docs. Change libpgeasy connection parameters to useBruce Momjian2000-05-181-1/+4
| | | | PQconnectdb() style connections.
* The old init file won't run under bash on my box.Bruce Momjian2000-05-161-1/+1
| | | | Joseph Shraibman
* Because we ended up forcing an initdb for 7.0 final, we aren't goingTom Lane2000-05-053-38/+2
| | | | to need this updatepgproc.sql script after all...
* Update pgeasy examplesBruce Momjian2000-04-281-1/+1
|
* More libpgeasy update of connectdb() parameter orderingBruce Momjian2000-04-281-1/+1
|
* Add scripts to enable/disable use of new LIKE/regexp selectivityTom Lane2000-04-165-0/+164
| | | | estimation operators. See contrib/likeplanning/README for info.
* Print OIDs as %u not %d.Tom Lane2000-04-161-2/+2
|
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-1216-1564/+1730
|
* Internal functions to support newest ODBC driver {fn ...} conventions.Thomas G. Lockhart2000-04-115-0/+806
| | | | | Includes compiled code to support pre-7.0 backends, but for 7.0 only requires executing odbc.sql.
* Modify pgbench.c not to depend on configure, since it's not shipped with one.Tom Lane2000-04-081-2/+2
|
* Clean up directory to compile and run on my Linux box at least.Thomas G. Lockhart2000-04-075-137/+83
| | | | Note that there is some trouble with inconsistant input/output formats.
* Hi,Bruce Momjian2000-04-039-132/+423
| | | | | | | | | | | here is an updated version of the bit type with a bugfix and all the necessa ry SQL functions defined. This should replace what is currently in contrib. I'd appreciate any comments on what is there. Kind regards, Adriaan
* Since PORTNAME is no longer used at the level of C code (it's only inTom Lane2000-03-193-841/+3
| | | | | | | | Makefiles now), there's no reason for os2client to maintain its own copy of c.h just to change #define PORTNAME. Simplify Makefile accordingly. Get rid of horribly-out-of-date modified copy of c.h, which should never have been in the distribution to start with, since it's actually a derived file. Now it's not needed anyway.
* contrib-array.patchBruce Momjian2000-02-1311-57/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is an old patch which I have already submitted and never seen in the sources. It corrects the datatype oids used in some iterator functions. This bug has been reported to me by many other people. contrib-datetime.patch some code contributed by Reiner Dassing <dassing@wettzell.ifag.de> contrib-makefiles.patch fixes all my contrib makefiles which don't work with some compilers, as reported to me by another user. contrib-miscutil.patch an old patch for one of my old contribs. contrib-string.patch a small change to the c-like text output functions. Now the '{' is escaped only at the beginning of the string to distinguish it from arrays, and the '}' is no more escaped. elog-lineno.patch adds the current lineno of CopyFrom to elog messages. This is very useful when you load a 1 million tuples table from an external file and there is a bad value somehere. Currently you get an error message but you can't know where is the bad data. The patch uses a variable which was declared static in copy.c. The variable is now exported and initialized to 0. It is always cleared at the end of the copy or at the first elog message or when the copy is canceled. I know this is very ugly but I can't find any better way of knowing where the copy fails and I have this problem quite often. plperl-makefile.patch fixes a typo in a makefile, but the error must be elsewhere because it is a file generated automatically. Please have a look. tprintf-timestamp.patch restores the original 2-digit year format, assuming that the two century digits don't carry much information and that '000202' is easier to read than 20000202. Being only a log file it shouldn't break anything. Please apply the patches before the next scheduled code freeze. I also noticed that some of the contribs don't compile correcly. Should we ask people to fix their code or rename their makefiles so that they are ignored by the top makefile? -- Massimo Dal Zotto
* Add:Bruce Momjian2000-01-262-4/+6
| | | | | | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
* as attache of this mail is patch (to the main tree) with to_char'sBruce Momjian2000-01-2510-1874/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | family functions. Contain: conversion from a datetype to formatted text: to_char( datetime, text) to_char( timestamp, text) to_char( int4, text) to_char( int8, text) to_char( float4, text) to_char( float8, text) to_char( numeric, text) vice versa: to_date ( text, text) to_datetime ( text, text) to_timestamp ( text, text) to_number ( text, text) (convert to numeric) PostgreSQL to_char is very compatible with Oracle's to_char(), but not total exactly (now). Small differentions are in number formating. It will fix in next to_char() version. ! If will this patch aplly to the main tree, must be delete the current to_char version in contrib (directory "dateformat" and note in contrib's README), this patch not erase it (sorry Bruce). The patch patching files: doc/src/sgml/func.sgml ^^^^^^^^ Hmm, I'm not sure if my English... :( Check it anyone (volunteer)? Thomas, it is right? SGML is not my primary lang and compile the current PG docs tree is very happy job (hard variables setting in docs/sgml/Makefile --> HSTYLE= /home/users/t/thomas/.... :-) What add any definition to global configure.in and set Makefiles in docs tree via ./configure? src/backend/utils/adt/Makefile src/backend/utils/adt/formatting.c src/include/catalog/pg_proc.h src/include/utils/formatting.h Karel Zak <zakkr@zf.jcu.cz> http://home.zf.jcu.cz/~zakkr/
* findoidjoins was suffering from bit rot (pginterface noTom Lane2000-01-223-19/+26
| | | | longer in expected location).
* Add pgench: a TPC-B like benchmarking toolTatsuo Ishii2000-01-155-0/+1079
|
* I finish devel. of Oracle compatible DateTime routines TO_CHAR(),Bruce Momjian1999-11-2910-0/+1878
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TO_DATE() and PgSQL extension FROM_CHAR(). TO_CHAR() routine allow formating text output with a datetime values: SELECT TO_CHAR('now'::datetime, '"Now is: "HH24:MI:SS'); to_char ---------------- Now is: 21:04:10 FROM_CHAR() routine allow convert text to a datetime: SELECT FROM_CHAR('September 1999 10:20:30', 'FMMonth YYYY HH:MI:SS'); from_char ----------------------------- Wed Sep 01 10:20:30 1999 CEST TO_DATE() is equal with FROM_CHAR(), but output a Date only: SELECT TO_DATE('September 1999 10:20:30', 'FMMonth YYYY HH:MI:SS'); to_date ---------- 09-01-1999 In attache is compressed dir for the contrib. All is prepared, but I'am not sure if Makefile is good (probably yes). Comments & suggestions ? Thomas, thank you for your good advices. Karel ------------------------------------------------------------------------------ Karel Zak <zakkr@zf.jcu.cz> http://home.zf.jcu.cz/~zakkr/
* Attached are the C-routines that implement a BIT and BIT VARYING type.Bruce Momjian1999-11-296-0/+1213
| | | | Adriaan Joubert
* Add pginterface into main tree, called pgeasy.Bruce Momjian1999-10-1112-811/+1
|
* Update contrib/README.Bruce Momjian1999-10-091-4/+0
|
* Remove contrib/int8.Bruce Momjian1999-10-095-858/+0
|
* Apply contrib patch from MassimoBruce Momjian1999-09-2716-8/+81
|