summaryrefslogtreecommitdiff
path: root/contrib/dbmirror
Commit message (Collapse)AuthorAgeFilesLines
* Remove contrib modules that have been migrated to pgfoundry: adddepend,Tom Lane2006-09-058-2195/+0
| | | | | dbase, dbmirror, fulltextindex, mac, userlock; or abandoned: mSQL-interface, tips.
* Alphabetically order reference to include files, "N" - "S".Bruce Momjian2006-07-111-2/+3
|
* Backpatch dbmirror fix for escape handling.Bruce Momjian2006-07-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | > Upstream confirmed my reply in the last mail in [1]: the complete > escaping logic in DBMirror.pl is seriously screwew. > > [1] http://archives.postgresql.org/pgsql-bugs/2006-06/msg00065.php I finally found some time to debug this, and I think I found a better patch than the one you proposed. Mine is still hackish and is still a workaround around a proper quoting solution, but at least it repairs the parsing without introducing the \' quoting again. I consider this a band-aid patch to fix the recent security update. PostgreSQL gurus, would you consider applying this until a better solution is found for DBMirror.pl? Olivier, can you please confirm that the patch works for you, too? Backpatched to 8.0.X. Martin Pitt
* Magic blocks don't do us any good unless we use 'em ... so install oneTom Lane2006-05-301-2/+4
| | | | in every shared library.
* Use SQL standard '' rather than \' in /contrib. Backpatch to 8.1.X.Bruce Momjian2006-05-192-7/+7
|
* Clean up CREATE FUNCTION syntax usage in contrib and elsewhere, inPeter Eisentraut2006-02-271-38/+30
| | | | | particular get rid of single quotes around language names and old WITH () construct.
* Standard pgindent run for 8.1.Bruce Momjian2005-10-151-6/+6
|
* Change nextval and other sequence functions to specify their sequenceTom Lane2005-10-023-170/+97
| | | | | | | | | | | | | | | argument as a 'regclass' value instead of a text string. The frontend conversion of text string to pg_class OID is now encapsulated as an implicitly-invocable coercion from text to regclass. This provides backwards compatibility to the old behavior when the sequence argument is explicitly typed as 'text'. When the argument is just an unadorned literal string, it will be taken as 'regclass', which means that the stored representation will be an OID. This solves longstanding problems with renaming sequences that are referenced in default expressions, as well as new-in-8.1 problems with renaming such sequences' schemas or moving them to another schema. All per recent discussion. Along the way, fix some rather serious problems in dbmirror's support for mirroring sequence operations (int4 vs int8 confusion for instance).
* PGXS should be set with := not =, as specified in the documentation,Tom Lane2005-09-271-2/+2
| | | | to avoid useless multiple executions of pg_config.
* Convert oidvector and int2vector into variable-length arrays. ThisTom Lane2005-03-291-10/+6
| | | | | | | | | | | | | change saves a great deal of space in pg_proc and its primary index, and it eliminates the former requirement that INDEX_MAX_KEYS and FUNC_MAX_ARGS have the same value. INDEX_MAX_KEYS is still embedded in the on-disk representation (because it affects index tuple header size), but FUNC_MAX_ARGS is not. I believe it would now be possible to increase FUNC_MAX_ARGS at little cost, but haven't experimented yet. There are still a lot of vestigial references to FUNC_MAX_ARGS, which I will clean up in a separate pass. However, getting rid of it altogether would require changing the FunctionCallInfoData struct, and I'm not sure I want to buy into that.
* Contrib build fixes:Neil Conway2004-11-041-1/+3
| | | | | | | | | | | | | | - add some additional files to the dbmirror install (approved by ssinger) - add a makefile for contrib/mysql, and add mysql to the list of contribs build by default - use xml2-config to pickup -I flags for libxml2 in contrib/xml and contrib/xml2 Original work from Martin Pitt of Debian, minor cleanups by Neil Conway.
* Update reference to pgsql-server.Tom Lane2004-10-121-3/+3
|
* Apply patch from Steven Singer for contrib/dbmirror. Changes:Neil Conway2004-09-105-24/+67
| | | | | | | -It fixes up some bugs with handling setval calls -Adds upgrade instructions from prior versions -Improved the sample config file -Fixed some things in the clean_pending script
* Pgindent run for 8.0.Bruce Momjian2004-08-291-223/+220
|
* > Please find enclose a submission to fix these problems.Bruce Momjian2004-08-201-5/+9
| | | | | | | | | | | | | | | | | | | | | | > > The patch adds missing the "libpgport.a" file to the installation under > "install-all-headers". It is needed by some contribs. I install the > library in "pkglibdir", but I was wondering whether it should be "libdir"? > I was wondering also whether it would make sense to have a "libpgport.so"? > > It fixes various macros which are used by contrib makefiles, especially > libpq_*dir and LDFLAGS when used under PGXS. It seems to me that they are > needed to > > It adds the ability to test and use PGXS with contribs, with "make > USE_PGXS=1". Without the macro, this is exactly as before, there should be > no difference, esp. wrt the vpath feature that seemed broken by previous > submission. So it should not harm anybody, and it is useful at least to me. > > It fixes some inconsistencies in various contrib makefiles > (useless override, ":=" instead of "="). Fabien COELHO
* Attached is a 1 line bug fix for dbmirror that was submitted.Joe Conway2004-07-021-1/+3
| | | | | | It fixes a bug where some transactions could be dropped when writing mirrored SQL statements to files. -- Steven Singer
* Please apply this minor patch to the cvs HEAD of dbmirrorJan Wieck2004-05-261-3/+3
| | | | | | | | | It fixes a typo in a define Thanks -- Steven Singer
* Attached is are a few small fixes for dbmirror.Bruce Momjian2004-04-222-6/+6
| | | | | | | | | | | 1. Fixed bug where sequences were being mirrored incorrectly if they exceeded 127 2. Fixed a bug in the perl script with mirroring sequences(John Burtenshaw sent an email to patches describing the bug in March but I htink he forgot to attach his patch) 3. The dates/times in the transaction files will always use 2 digits. Steven Singer
* Please apply this patch to contrib/dbmirrorBruce Momjian2004-02-174-254/+671
| | | | | | | | | | | | | | | In incorperates changes from myself and a number of contributors. This update to dbmirror provides: -replication of sequence operations via setval/nextval -DBMirror.pl support for logging to syslog -changed the names of the tables to dbmirror_* (no quotes required) -Support for writitng SQL statements to files instead of directly to a slave database -More options for DBMirror.pl in the config files. Steven Singer
* make sure the $Id tags are converted to $PostgreSQL as well ...PostgreSQL Daemon2003-11-294-4/+4
|
* $Header: -> $PostgreSQL Changes ...PostgreSQL Daemon2003-11-291-1/+1
|
* Here is an update to the dbmirror README file.Bruce Momjian2003-10-271-53/+12
| | | | | | | | | -References to older versions of PostgreSQL have been removed(It no longer compiles against older versions) -Added a link to PgPerl at GBorg. Steven Singer
* A) Fixes a bug that prevented mirroring of data on a table that has hadBruce Momjian2003-09-292-3/+14
| | | | | | | | a column dropped. B) Updated the documentation for the 7.4 release. Steven Singer
* pgindent run.Bruce Momjian2003-08-041-14/+15
|
* Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)Tom Lane2003-07-241-27/+29
|
* Backend support for autocommit removed, per recent discussions. TheTom Lane2003-05-144-20/+2
| | | | | | only remnant of this failed experiment is that the server will take SET AUTOCOMMIT TO ON. Still TODO: provide some client-side autocommit logic in libpq.
* The attatched patch fixes a memory error with contrib/dbmirror/pending.cBruce Momjian2003-03-201-2/+2
| | | | | | | | when running it with older(Pre 7.3.x) versions of Postgresql. Backpatched to 7.3.X. Steven Singer
* It looks like the problem was introduced when the "SET autocommit" andBruce Momjian2002-12-051-3/+3
| | | | | | | | | "SET search_path" commands were added to the beginning of the script. The attatched patch should fix the problem. It probably should be applied against the 7.3 and 7.4 branches. Steven Singer
* Allocate proper length for sprintf string, from Tatsuo.Bruce Momjian2002-11-261-3/+3
|
* Fix a dozen or so places that were passing unpredictable data stringsTom Lane2002-11-221-7/+7
| | | | | as elog format strings. Hai-Chen Tu pointed out the problem in contrib/dbmirror, but it wasn't the only such error.
* Fix elog in dbmirror to use %s.Bruce Momjian2002-11-221-6/+6
| | | | Hai-Chen Tu
* Remove GPL file pursuant to relicensing.Tom Lane2002-11-061-340/+0
|
* Change dbmirror lincense to BSD.Bruce Momjian2002-11-063-21/+56
|
* It includesBruce Momjian2002-10-194-20/+60
| | | | | | | | -Support for mirroring tables in different Schema's -Improved documentation for compiling with 7.1.x and 7.2.x -Fixes a buffer overrun bug. Steven Singer
* Update /contrib for "autocommit TO 'on'".Bruce Momjian2002-10-184-6/+34
| | | | | | | | | | Create objects in public schema. Make spacing/capitalization consistent. Remove transaction block use for object creation. Remove unneeded function GRANTs.
* This trivial patch fixes a bunch of spelling mistakes in theBruce Momjian2002-10-141-6/+6
| | | | | | contrib/dbmirror/README.dbmirror doc file. Neil Conway
* Attached is a patch to contrib/dbmirror that fixes a bug that wasBruce Momjian2002-09-262-1/+9
| | | | | | | | | | causing the postmaster to crash when the trigger was running on a table without a primary key. I've also updated the docs to explicitly say that tables need primary keys. Steven Singer
* Be careful to include postgres.h *before* any system headers, to ensureTom Lane2002-09-051-2/+3
| | | | | | that the right flavors of largefile-related definitions are seen. Most of these changes are probably unnecessary, but better safe than sorry.
* Fix compile warning.Peter Eisentraut2002-09-041-2/+2
|
* pgindent run.Bruce Momjian2002-09-041-351/+391
|
* Add a bunch of pseudo-types to replace the behavior formerly associatedTom Lane2002-08-221-1/+1
| | | | | | with OPAQUE, as per recent pghackers discussion. I still want to do some more work on the 'cstring' pseudo-type, but I'm going to commit the bulk of the changes now before the tree starts shifting under me ...
* Add dbmirror to /contrib. Minor C cleanups and Makefile.Bruce Momjian2002-06-239-0/+2045
Steven Singer