summaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)Author
2003-08-04pgindent run.Bruce Momjian
2003-08-01Fix for Alpha portability.Tom Lane
2003-08-01Update contrib regression tests for recent error message editing.Tom Lane
2003-08-01Add missing #include.Tom Lane
2003-08-01Fix some minor portability issues, per Chris K-L.Tom Lane
2003-07-31 dbf2pg - Insert xBase-style .dbf-files into a PostgreSQL-tableBruce Momjian
There is an option "-s oldname=newname", which changes the old field name of the dbf-file to the newname in PostgeSQL. If the length of the new name is 0, the field is skiped. If you want to skip the first field of the dbf-file, you get the wildest error-messages from the backend. dbf2pg load the dbf-file via "COPY tablename FROM STDIN". If you skip the first field, it is an \t to much in STDIN. A fix could be an counter j=0, which increments only, if a field is imported (IF (strlen(fields[h].db_name)> 0) j++. And only if j > 1 (if an other field is imported) the \t is printed. An other small bug in the README: -s start Specify the first record-number in the xBase-file we will insert. should be -e start Specify the first record-number in the xBase-file we will insert. Thomas Behr
2003-07-28A visit from the message-style police ...Tom Lane
2003-07-27Updatge to skip composite types.Bruce Momjian
2003-07-27Adjust oid2name to skip certain row types, per Tom.Bruce Momjian
2003-07-27elog mop-up.Tom Lane
2003-07-27elog mop-up.Tom Lane
2003-07-27Remove unportable // comments.Tom Lane
2003-07-27Cleanup of timetravel compile warnings.Bruce Momjian
2003-07-27Here is 4 file in tgz:Bruce Momjian
the new timetravel.c, new timetravel.README (cut from spi/README and modified), modified timetravel.sql.in and modified timetravel.example. Features: - optionally 3 parameter for insert/update/delete user name - work with CREATE UNIQUE INDEX ixxx on table xxx (unique_field,time_off); (the original version was work with unique index on 6.5.0-6.5.3, and not work on 7.3.2,7.3.3) (before 6.5.0 and between 6.5.3 and 7.3.2 I dont know) - get_timetravel(tablename) function for check timetravel-status. - timetravel trigger not change oid of the active record. (it is not a good feature, because the old version is automatice prevent the paralel update with "where oid=nnn") B?jthe Zolt?n
2003-07-27> Am Son, 2003-06-22 um 02.09 schrieb Joe Conway:Bruce Momjian
>>Sounds like all that's needed for your case. But to be complete, in >>addition to changing tablefunc.c we'd have to: >>1) come up with a new function call signature that makes sense and does >>not cause backward compatibility problems for other people >>2) make needed changes to tablefunc.sql.in >>3) adjust the README.tablefunc appropriately >>4) adjust the regression test for new functionality >>5) be sure we don't break any of the old cases >> >>If you want to submit a complete patch, it would be gratefully accepted >>-- for review at least ;-) > > Here's the patch, at least for steps 1-3 Nabil Sayegh Joe Conway
2003-07-26Fix for Linux startup script.Bruce Momjian
Slawomir Sudnik
2003-07-24Fix a few portability issues, adjust error messages.Tom Lane
2003-07-24Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)Tom Lane
2003-07-24Add tsearch2.Tom Lane
2003-07-22Remove link of tarballTeodor Sigaev
2003-07-22Mark tsearch v1 as deprecatedTeodor Sigaev
2003-07-21Fix output to psql:tsearch2.sql:13: NOTICE: ... "pg_ts_dict_pkey"Teodor Sigaev
2003-07-21tsearch2 moduleTeodor Sigaev
2003-07-18Fix subpath and subltree. Allow to return '' value.Teodor Sigaev
subpath(ltree,0,0) returns ''.
2003-06-30Update contrib/Makefile's list of subdirectories that it does not tryTom Lane
to build.
2003-06-30Put back inappropriately-removed entry for earthdistance subdirectory.Tom Lane
2003-06-28Group ISBN/ISSN definitions.Bruce Momjian
2003-06-25Back out rserv changes that would allow limit of replicated tables ---Bruce Momjian
not ready yet.
2003-06-25'third' -> 'fourth' where needed, per Joe Conway.Tom Lane
2003-06-25Includes:Bruce Momjian
- LIKE <subtable> [ INCLUDING DEFAULTS | EXCLUDING DEFAULTS ] - Quick cleanup of analyze.c function prototypes. - New non-reserved keywords (INCLUDING, EXCLUDING, DEFAULTS), SQL 200X Opted not to extend for check constraints at this time. As per the definition that it's user defined columns, OIDs are NOT inherited. Doc and Source patches attached. -- Rod Taylor <rbt@rbt.ca>
2003-06-25Attached is a patch that provides *VERY* limited support for multipleBruce Momjian
slave servers. I haven't tested it very well, so use at your own risk (and I recommend against using it in production). Basically, I have a central database server that has 4 summary tables inside it replicated to a remote slave (these database tables are for my mail server authentication, so these are replicated to another server tuned for many connections, and so I don't have postgres connections opened straight to my back-end database server). Unfortunately, I also wanted to implement a replication database server for hot-backups. I realized, too late, that the replication process is pretty greedy and will try to replicate all tables marked as a "MasterAddTable". To make a long story, I made a patch to RServ.pm and Replicate that allows you to specify, on the command line, a list of tables that you want to replicate...it'll ignore all others. I haven't finished, since this has to be integrated with CleanLog for instance, but this should (and does) suffice for the moment. I have yet to test it with two slaves, but at least my mail server replication database now works (it was failing every time it tried to replicate, for a variety of reasons). Anyone have any suggestions on how to improve on this? (or, if someone more familiar with this code wants to take the ball and run with it, you're welcome to). -- Michael A Nachbaur <mike@nachbaur.com>
2003-06-25- Corrections for tables, columns with uppercase charactersBruce Momjian
- Don't attempt to convert partial or expressional unique indexes - Don't attempt to convert unique indexes based on a non-default opclasses - Untested prevention of conversion of non-btree indexes unique indexes. Untested as postgresql doesn't allow hash, gist, or rtree based indexes to be unique. rbt=# create unique index t on a using hash (col); ERROR: DefineIndex: access method "hash" does not support UNIQUE indexes rbt=# create unique index t on a using gist (col); ERROR: DefineIndex: access method "gist" does not support UNIQUE indexes rbt=# select version(); version ------------------------------------------------------------------------ PostgreSQL 7.4devel on i386-unknown-freebsd4.8, compiled by GCC 2.95.4 Rod Taylor
2003-06-25Please apply attached patch to contrib/dblink. It adds named persistentBruce Momjian
connections to dblink. Shridhar Daithanka
2003-06-24Jim C. Nasby wrote:Bruce Momjian
> Second argument to metaphone is suposed to set the limit on the > number of characters to return, but it breaks on some phrases: > > usps=# select metaphone(a,3),metaphone(a,4),metaphone(a,20) from > (select 'Hello world'::varchar AS a) a; > HLW | HLWR | HLWRLT > > usps=# select metaphone(a,3),metaphone(a,4),metaphone(a,20) from > (select 'A A COMEAUX MEMORIAL'::varchar AS a) a; > AKM | AKMKS | AKMKSMMRL > > In every case I've found that does this, the 4th and 5th letters are > always 'KS'. Nice catch. There was a bug in the original metaphone algorithm from CPAN. Patch attached (while I was at it I updated my email address, changed the copyright to PGDG, and removed an unnecessary palloc). Here's how it looks now: regression=# select metaphone(a,4) from (select 'A A COMEAUX MEMORIAL'::varchar AS a) a; metaphone ----------- AKMK (1 row) regression=# select metaphone(a,5) from (select 'A A COMEAUX MEMORIAL'::varchar AS a) a; metaphone ----------- AKMKS (1 row) Joe Conway
2003-06-15Replace cryptic 'Unknown kind of return type' messages with somethingTom Lane
hopefully a little more useful.
2003-06-12New patch with corrected README attached.Bruce Momjian
Also quickly added mention that it may be a qualified schema name. Rod Taylor
2003-06-12Add Linux restart --- Slawomir SudnikBruce Momjian
Add "-l $PGLOG" for restart --- Darko Prenosil
2003-06-12This patch updates pg_autovacuum in several ways:Bruce Momjian
* A few bug fixes * fixes solaris compile and crash issue * decouple vacuum analyze and analyze thresholds * detach from tty (dameonize) * improved logging layout * more conservative default configuration * improved, expanded and updated README please apply and 1st convenience, or before code freeze which ever comes first :-) At this point I think I have brought pg_autovacuum and its client side design as far as I think it should go. It works, keeping file sizes in check, helps performance and give the administrator a fair amount flexibility in configuring it. Next up is to do the FSM based design that is integrated into the back end. p.s. Thanks to Christopher Browne for his help. Matthew T. O'Connor
2003-06-11Update expected file to match new _int.sql.Tom Lane
2003-06-11Add missing intarray files.Bruce Momjian
2003-06-11Changes:Bruce Momjian
1 intarray: bugfix for int[]-int[] operation 2 intarray: split _int.c to several files (_int.c now is unused) 3 ntarray (gist__intbig_ops opclass): use special type for index storage 4 ltree (gist__ltree_ops opclass), intarray (gist__intbig_ops): optimize GiST's penalty and picksplit interface functions, now use Hemming distance. Teodor Sigaev
2003-06-11Remove platform-specific executable; does not belong in distribution.Tom Lane
2003-06-10Fix uninitialized memory bugTatsuo Ishii
Add support for PGHOST, PGPORT, PGUSER environment variables
2003-05-29Ensure that in all flex lexers that are part of the backend, aTom Lane
yy_fatal_error() call results in elog(ERROR) not exit(). This was already fixed in the main lexer and plpgsql, but extend same technique to all the other dot-l files. Also, on review of the possible calls to yy_fatal_error(), it seems safe to use elog(ERROR) not elog(FATAL).
2003-05-28Replace functional-index facility with expressional indexes. Any columnTom Lane
of an index can now be a computed expression instead of a simple variable. Restrictions on expressions are the same as for predicates (only immutable functions, no sub-selects). This fixes problems recently introduced with inlining SQL functions, because the inlining transformation is applied to both expression trees so the planner can still match them up. Along the way, improve efficiency of handling index predicates (both predicates and index expressions are now cached by the relcache) and fix 7.3 oversight that didn't record dependencies of predicate expressions.
2003-05-27Make debug_ GUC varables output DEBUG1 rather than LOG, and mention inBruce Momjian
docs that CLIENT/LOG_MIN_MESSAGES now controls debug_* output location. Doc changes included.
2003-05-26Cause CHAR(n) to TEXT or VARCHAR conversion to automatically strip trailingTom Lane
blanks, in hopes of reducing the surprise factor for newbies. Remove redundant operators for VARCHAR (it depends wholly on TEXT operations now). Clean up resolution of ambiguous operators/functions to avoid surprising choices for domains: domains are treated as equivalent to their base types and binary-coercibility is no longer considered a preference item when choosing among multiple operators/functions. IsBinaryCoercible now correctly reflects the notion that you need *only* relabel the type to get from type A to type B: that is, a domain is binary-coercible to its base type, but not vice versa. Various marginal cleanup, including merging the essentially duplicate resolution code in parse_func.c and parse_oper.c. Improve opr_sanity regression test to understand about binary compatibility (using pg_cast), and fix a couple of small errors in the catalogs revealed thereby. Restructure "special operator" handling to fetch operators via index opclasses rather than hardwiring assumptions about names (cleans up the pattern_ops stuff a little).
2003-05-19Repair quoting sloppiness, lack of schema awareness in reindexdb.Tom Lane
2003-05-16Fix failure when uniq-ifying an array of zero elements.Tom Lane
Teodor Sigaev
2003-05-16Check calling context for connectby_text(), per Joe Conway.Tom Lane