From cbbrowne at lists.slony.info Fri Oct 3 09:41:25 2008 From: cbbrowne at lists.slony.info (Chris Browne) Date: Fri Oct 3 09:41:26 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide faq.sgml Message-ID: <20081003164125.4857A290041@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv21467 Modified Files: faq.sgml Log Message: Add FAQ about use of "oid" column on replicable table Index: faq.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/faq.sgml,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** faq.sgml 21 Apr 2008 21:32:56 -0000 1.78 --- faq.sgml 3 Oct 2008 16:41:23 -0000 1.79 *************** *** 428,431 **** --- 428,454 ---- + + My application uses OID attributes; is it possible to replicate tables like this? + + + It is worth noting that oids, as a regular table + attribute, have been deprecated since &postgres; version 8.1, back in + 2005. &slony1; has never collected oids to + replicate them, and, with that functionality being deprecated, the + developers do not intend to add this functionality. + + &postgres; implemented oids as a way to link its internal + system tables together; to use them with application tables is + considered poor practice, and it is recommended + that you use sequences to populate your own ID column on application + tables. + + Of course, nothing prevents you from creating a table + without oids, and then add in your own + application column called oid, preferably with type + information SERIAL NOT NULL UNIQUE, which + can be replicated, and which is likely to be + suitable as a candidate primary key for the table. + From devrim at lists.slony.info Mon Oct 13 12:16:29 2008 From: devrim at lists.slony.info (Devrim GUNDUZ) Date: Mon Oct 13 12:16:31 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide maintenance.sgml Message-ID: <20081013191629.EDB7029002B@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv25933 Modified Files: maintenance.sgml Log Message: Fix sgml errors Index: maintenance.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/maintenance.sgml,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** maintenance.sgml 7 Apr 2008 19:24:02 -0000 1.31 --- maintenance.sgml 13 Oct 2008 19:16:27 -0000 1.32 *************** *** 114,117 **** --- 114,118 ---- information: INSERT INTO pg_catalog.pg_autovacuum (vacrelid, enabled, vac_base_thresh, vac_scale_factor, anl_base_thresh, anl_scale_factor, vac_cost_delay, vac_cost_limit, freeze_min_age, freeze_max_age) SELECT oid, 'f', -1, -1, -1, -1, -1, -1, -1, -1 FROM pg_catalog.pg_class WHERE relnamespace = (SELECT OID FROM pg_namespace WHERE nspname = '_' || 'MyCluster') AND relhasindex; + Watchdogs: Keeping Slons Running *************** *** 385,388 **** --- 386,390 ---- SLON_BINARY the full path name of the slon binary (default which slon) + logrep-mkservice.sh From devrim at lists.slony.info Mon Oct 13 12:29:14 2008 From: devrim at lists.slony.info (Devrim GUNDUZ) Date: Mon Oct 13 12:29:16 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide failover.sgml Message-ID: <20081013192914.C13E3290036@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv26733 Modified Files: failover.sgml Log Message: Fix sgml errors Index: failover.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/failover.sgml,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** failover.sgml 24 Mar 2008 15:57:34 -0000 1.27 --- failover.sgml 13 Oct 2008 19:29:12 -0000 1.28 *************** *** 41,45 **** on node1. Both databases are up and running and replication is more or less in sync. We do controlled switchover using . --- 41,45 ---- on node1. Both databases are up and running and replication is more or less in sync. We do controlled switchover using . *************** *** 58,62 **** the database that has been promoted to the --- 58,62 ---- the database that has been promoted to the *************** *** 120,124 **** seconds. ! You may now simply shutdown the server hosting node1 and do --- 120,124 ---- seconds. ! You may now simply shutdown the server hosting node1 and do *************** *** 267,271 **** to forcibly knock the failed node off the network in order to prevent applications from getting confused. This could take place via having ! an SNMP interface that does some combination of the following: --- 267,271 ---- to forcibly knock the failed node off the network in order to prevent applications from getting confused. This could take place via having ! an SNMP interface that does some combination of the following: *************** *** 288,292 **** - --- 288,291 ---- From devrim at lists.slony.info Mon Oct 13 12:48:08 2008 From: devrim at lists.slony.info (Devrim GUNDUZ) Date: Mon Oct 13 12:48:09 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide partitioning.sgml slony.sgml Message-ID: <20081013194809.039DE290038@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv28210 Modified Files: partitioning.sgml slony.sgml Log Message: Fix sgml errors Index: slony.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/slony.sgml,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** slony.sgml 26 May 2008 18:46:21 -0000 1.42 --- slony.sgml 13 Oct 2008 19:48:06 -0000 1.43 *************** *** 124,128 **** &supportedplatforms; &releasechecklist; !
--- 124,128 ---- &supportedplatforms; &releasechecklist; !
Index: partitioning.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/partitioning.sgml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** partitioning.sgml 5 Sep 2007 21:35:25 -0000 1.1 --- partitioning.sgml 13 Oct 2008 19:48:06 -0000 1.2 *************** *** 107,110 **** --- 107,111 ---- empty. + From devrim at lists.slony.info Mon Oct 13 13:07:29 2008 From: devrim at lists.slony.info (Devrim GUNDUZ) Date: Mon Oct 13 13:07:30 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide faq.sgml Message-ID: <20081013200729.D6B27290036@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv30017 Modified Files: faq.sgml Log Message: Fix sgml errors Index: faq.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/faq.sgml,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** faq.sgml 3 Oct 2008 16:41:23 -0000 1.79 --- faq.sgml 13 Oct 2008 20:07:27 -0000 1.80 *************** *** 450,454 **** can be replicated, and which is likely to be suitable as a candidate primary key for the table. ! --- 450,454 ---- can be replicated, and which is likely to be suitable as a candidate primary key for the table. ! From devrim at lists.slony.info Mon Oct 13 13:12:57 2008 From: devrim at lists.slony.info (Devrim GUNDUZ) Date: Mon Oct 13 13:12:58 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide versionupgrade.sgml Message-ID: <20081013201257.4CD5E290036@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv30458 Modified Files: versionupgrade.sgml Log Message: Fix sgml errors Index: versionupgrade.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/versionupgrade.sgml,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** versionupgrade.sgml 18 Sep 2008 21:27:41 -0000 1.10 --- versionupgrade.sgml 13 Oct 2008 20:12:55 -0000 1.11 *************** *** 172,176 **** How to install &slony1; is covered quite well in other parts of the documentation (); we will just ! provide a quick guide here. --- 172,176 ---- How to install &slony1; is covered quite well in other parts of the documentation (); we will just ! provide a quick guide here. *************** *** 221,225 **** ! Make a copy of /data/pgsql-8.2.3/etc/slon_tools.conf-sample --- 221,225 ---- ! Make a copy of /data/pgsql-8.2.3/etc/slon_tools.conf-sample *************** *** 228,232 **** replication you will generally not need to split into multiple sets. On a production machine running with 500 tables and 100 ! sequences, putting them all in a single set has worked fine. --- 228,232 ---- replication you will generally not need to split into multiple sets. On a production machine running with 500 tables and 100 ! sequences, putting them all in a single set has worked fine. *************** *** 259,263 **** - This is what it look like with all comments stripped out: --- 259,262 ---- *************** *** 311,314 **** --- 310,314 ---- 1; + As can be seen this database is pretty small with only 8 tables and 6 sequences. Now copy your From devrim at lists.slony.info Mon Oct 13 13:18:56 2008 From: devrim at lists.slony.info (Devrim GUNDUZ) Date: Mon Oct 13 13:18:58 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide logshipping.sgml Message-ID: <20081013201856.F0226290038@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv30995 Modified Files: logshipping.sgml Log Message: Fix sgml errors Index: logshipping.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/logshipping.sgml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** logshipping.sgml 20 Dec 2007 00:56:46 -0000 1.20 --- logshipping.sgml 13 Oct 2008 20:18:54 -0000 1.21 *************** *** 403,407 **** rename namespace "public"."history" to "site_001"."history"; One may rename specific tables. rename namespace "public" to "site_001"; One may rename entire namespaces. ! post processing command = 'gzip -9 $inarchive'; Pre- and post-processign commands are executed via system(3). An @ as the first character causes the exit code to be ignored. Otherwise, a nonzero exit code is treated as an error and causes processing to abort. --- 403,408 ---- rename namespace "public"."history" to "site_001"."history"; One may rename specific tables. rename namespace "public" to "site_001"; One may rename entire namespaces. ! post processing command = 'gzip -9 $inarchive'; Pre- and post-processign commands are executed via system(3). ! An @ as the first character causes the exit code to be ignored. Otherwise, a nonzero exit code is treated as an error and causes processing to abort. *************** *** 422,426 **** In the example shown, this sends an email to the DBAs upon encountering an error. - Archive File Names --- 423,426 ---- From devrim at lists.slony.info Mon Oct 13 14:27:13 2008 From: devrim at lists.slony.info (Devrim GUNDUZ) Date: Mon Oct 13 14:27:14 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide adminscripts.sgml Message-ID: <20081013212713.16938290036@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv4668 Modified Files: adminscripts.sgml Log Message: Fix sgml errors Index: adminscripts.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/adminscripts.sgml,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** adminscripts.sgml 1 Aug 2008 19:32:24 -0000 1.51 --- adminscripts.sgml 13 Oct 2008 21:27:10 -0000 1.52 *************** *** 368,373 **** ! Starting the &lslon;, via start_slon.sh start ! Attempts to start the &lslon;, checking first to verify that it is not already running, that configuration exists, and that the log --- 368,373 ---- ! Starting the &lslon;, via start_slon.sh start ! Attempts to start the &lslon;, checking first to verify that it is not already running, that configuration exists, and that the log *************** *** 378,382 **** A &lslon; is found with the PID indicated via the runtime configuration, The specified SLON_LOG location is not writable. - Stopping the &lslon;, via start_slon.sh stop This fails (doing nothing) if the PID (indicated via the runtime configuration file) does not exist; --- 378,381 ---- *************** *** 739,743 **** schema.sql ! This is drawn from the origin node, and contains the pristine database schema that must be applied first. slonik.preamble --- 738,742 ---- schema.sql ! This is drawn from the origin node, and contains the pristine database schema that must be applied first. slonik.preamble From devrim at lists.slony.info Mon Oct 13 14:32:24 2008 From: devrim at lists.slony.info (Devrim GUNDUZ) Date: Mon Oct 13 14:32:25 2008 Subject: [Slony1-commit] slony1-engine/doc/adminguide slonyupgrade.sgml Message-ID: <20081013213224.92945290036@main.slony.info> Update of /home/cvsd/slony1/slony1-engine/doc/adminguide In directory main.slony.info:/tmp/cvs-serv5065 Modified Files: slonyupgrade.sgml Log Message: Fix sgml errors Index: slonyupgrade.sgml =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/doc/adminguide/slonyupgrade.sgml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** slonyupgrade.sgml 22 Aug 2007 22:05:48 -0000 1.8 --- slonyupgrade.sgml 13 Oct 2008 21:32:22 -0000 1.9 *************** *** 146,150 **** The possible variations to this are the reason that the developers have made no effort to try to assist automation of ! this. --- 146,151 ---- The possible variations to this are the reason that the developers have made no effort to try to assist automation of ! this. ! *************** *** 175,179 **** ! Create a new replication set ( ! ! Create a new replication set ( and . + !
Release Checklist release checklist --- 1,4 ---- ! Release Checklist release checklist *************** *** 148,152 **** !