views:

24

answers:

1

I have a reasonably sized postresql dump (around 270 mb) that I'm importing into a new database. All the tables import without issue except for one - the users table - and I'm neither sure what the problem is, nor what the best way to figure it out is. The tables after it import without error, so it's not as if it barf's on something and is unable to continue.

I've checked the log and there isn't much to go on:

2010-08-02 15:46:47 UTC STATEMENT:  COPY users ( omitting the fields.. ) FROM stdin;
2010-08-02 15:46:49 UTC LOG:  checkpoints are occurring too frequently (5 seconds apart)
2010-08-02 15:46:49 UTC HINT:  Consider increasing the configuration parameter "checkpoint_segments".

I'm not not a postgresql guru; most of my time is with mysql, so if there is something obvious to try, feel free to point it out! Not sure what to try next.

Thought that perhaps the orignal dump was from a different version that the one into which I'm attempting to import..but that seems like a lot of potentially unnecessary work to install another version.

All ideas welcome! Thanks..

A: 

looking at your comments it looks like an encoding problem. If your table has a char or varchar field with a fixed lenght and you try to insert a string that contains characters that get encoded in tow byte sequences in utf-8, the string looks longer to postgres if the encodings don't match.

make sure the input file and the database you have created are using the same encoding (I asume you want to use utf-8)

Nikolaus Gradwohl
Yup, that did the trick! Thanks. I thought it might after seeing the error with the chars that were likely needing special encoding. But assumed new databases would default to UTF-8. They're not..they seem to default to SQL_ASCII.
Mark Feldling