• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

clustertest/H05-Dec-2020-6,5825,967

config/H05-Dec-2020-4,7424,093

doc/H05-Dec-2020-31,47024,183

makefiles/H05-Dec-2020-634431

redhat/H05-Dec-2020-316236

share/H03-May-2022-180133

src/H05-Dec-2020-67,42348,457

suse/H05-Dec-2020-152122

tests/H05-Dec-2020-10,2119,191

tools/H03-May-2022-8,0015,406

.gitignoreH A D05-Dec-2020214 1514

COPYRIGHTH A D05-Dec-20201.1 KiB2116

GNUmakefile.inH A D05-Dec-20202.4 KiB10989

INSTALLH A D05-Dec-20204.9 KiB12292

MakefileH A D05-Dec-2020735 2423

Makefile.global.inH A D05-Dec-20202.5 KiB12097

READMEH A D05-Dec-20201.8 KiB5336

README.UnicodeH A D05-Dec-20202.4 KiB6144

RELEASEH A D05-Dec-202011.7 KiB279213

SAMPLEH A D05-Dec-202011 KiB287236

TODOH A D05-Dec-20203.8 KiB11978

UPGRADINGH A D05-Dec-20202.9 KiB7755

aclocal.m4H A D05-Dec-2020326 1210

config.h.inH A D05-Dec-20201.9 KiB8362

config_msvc.hH A D05-Dec-20201.4 KiB5247

configureH A D03-May-2022219.7 KiB7,9086,447

configure.acH A D05-Dec-20209.4 KiB324273

slony1.spec.inH A D05-Dec-20208.2 KiB219173

README

1Slony-I
2------------------
3
4
5Slony-I is a "master to multiple slaves" replication system with
6cascading and failover.
7
8The big picture for the development of Slony-I is a master-slave
9system that includes all features and capabilities needed to replicate
10large databases to a reasonably limited number of slave systems.
11
12Slony-I is a system for data centers and backup sites, where the
13normal mode of operation is that all nodes are available, and where
14systems may be expected to be managed in a reasonably disciplined
15fashion.
16
171.  Build and install
18
19    See the INSTALL file nearby
20
212.  Creating a sample database with application
22
23    See the SAMPLE file nearby
24
25    There is also a "test" directory in the source tree which contains
26    a variety of regression tests.  Looking at how they work may also
27    be helpful.
28
293.  Help!  I ran into a problem.
30
31    The file in the documentation area named "helpitsbroken.txt"
32    contains a variety of notes describing problems that people have
33    run into in setting up Slony-I instances.  This has been extended
34    into a full scale FAQ.
35
36    It may be worth checking there to see if the problem you are
37    having has already been documented and diagnosed by someone else.
38
39    There is an extensive "administrative guide" in the documentation
40    tree that includes manual pages for binaries and for the Slonik
41    language, as well as overviews of various aspects of how Slony-I
42    works and should be used, including a "Best Practices" document
43    that distills some of the hard-learned lessons and a FAQ.
44
45    This "admin guide" may be found online at:
46    <http://linuxdatabases.info/info/slony.html>
47
48You may also wish to contact the Slony-I mailing list, findable at
49<http://slony.info/>. or take a peek at who might be available to chat
50on the IRC channel #slony on freenode.net.
51
52-- Slony-I team
53

README.Unicode

1*** OUTSTANDING ISSUE WITH PostgreSQL 8.1 ***
2
3PostgreSQL 8.1 is quite a lot more strict about what UTF-8 mappings of
4Unicode characters it accepts as compared to version 8.0.
5
6If you intend to use Slony-I to update an older database to 8.1, and
7might have invalid UTF-8 values, you may be for an unpleasant
8surprise.
9
10Let us suppose we have a database running 8.0, encoding in UTF-8.
11That database will accept the sequence '\060\242' as UTF-8 compliant,
12even though it is really not.
13
14If you replicate into a PostgreSQL 8.1 instance, it will complain
15about this, either at subscribe time, where Slony-I will complain
16about detecting an invalid Unicode sequence during the COPY of the
17data, which will prevent the subscription from proceeding, or, upon
18adding data, later, where this will hang up replication fairly much
19irretrievably.  (You could hack on the contents of sl_log_1, but
20that's *really* unattractive...)
21
22There have been discussions as to what might be done about this.  No
23compelling strategy has yet emerged, as all are unattractive.
24
25If you are using Unicode with PostgreSQL 8.0, you run a considerable
26risk of corrupting data.
27
28If you use replication for a one-time conversion, there is a risk of
29failure due to the issues mentioned earlier; if that happens, it
30appears likely that the best answer is to fix the data on the 8.0
31system, and retry.
32
33In view of the risks, running replication between versions seems to be
34something you should not keep running any longer than is necessary to
35migrate to 8.1.
36
37http://archives.postgresql.org/pgsql-hackers/2005-12/msg00181.php
38
39Extracting from that:
40---------------------------------------------------------------
41Upgrading UNICODE databases to 8.1
42
43Postgres 8.1 includes a number of bug-fixes and improvements to
44Unicode and UTF-8 character handling.  Unfortunately previous releases
45would accept character sequences that were not valid UTF-8.  This
46may cause problems when upgrading your database using
47pg_dump/pg_restore resulting in an error message like this:
48
49  Invalid UNICODE byte sequence detected near byte ...
50
51To convert your pre-8.1 database to 8.1 you may have to remove and/or
52fix the offending characters.  One simple way to fix the problem is to
53run your pg_dump output through the iconv command like this:
54
55  iconv -c -f UTF8 -t UTF8 -o fixed.sql dump.sql
56
57The -c flag tells iconv to omit invalid characters from output.
58
59-- Paul Lindner
60---------------------------------------------------------------
61