Mon May 29 09:41:49 PDT 2006
- Previous message: [Slony1-general] strategy to fix utf8 encoding errors
- Next message: [Slony1-general] strategy to fix utf8 encoding errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Saturday 27 May 2006 21:09, Jeff Frost wrote: > On Sat, 27 May 2006, Vivek Khera wrote: > > Aside from playing whack-a-mole and fixing the errors one at a time as > > they are reported by slon, what can I do to make the data UTF8 safe for > > the strict checking of Pg 8.1? > > > > And what does one do to figure out what character to replace or do you > > generally just cut the offending character from the row? > > Generally you use iconv but that's with a dump/reload. I'm not sure if you > could hook that into slony somehow. > > Here's a snippet from the HISTORY file: > > * Some users are having problems loading UTF-8 data into 8.1.X. This > is because previous versions allowed invalid UTF-8 byte sequences > to be entered into the database, and this release properly accepts > only valid UTF-8 sequences. One way to correct a dumpfile is to run > the command "iconv -c -f UTF-8 -t UTF-8 -o cleanfile.sql > dumpfile.sql". The -c option removes invalid character sequences. A > diff of the two files will show the sequences that are invalid. > "iconv" reads the entire input file into memory so it might be > necessary to use split to break up the dump into multiple smaller > files for processing. Perhaps you could use log shipping with the above iconv method to get things ironed out? -- Darcy Buskermolen Wavefire Technologies Corp. http://www.wavefire.com ph: 250.717.0200 fx: 250.763.1759
- Previous message: [Slony1-general] strategy to fix utf8 encoding errors
- Next message: [Slony1-general] strategy to fix utf8 encoding errors
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list