Re: Moving to postgresql and some ignorant questions

Поиск
Список
Период
Сортировка
Искать
От
Phoenix Kiula
Тема
Re: Moving to postgresql and some ignorant questions
Дата
Msg-id
e373d31e0708140836x7325208ei1b2b9374e29360a6@mail.gmail.com
Список
Дерево обсуждения
Moving to postgresql and some ignorant questions "Phoenix Kiula" <phoenix.kiula@gmail.com>
Re: Moving to postgresql and some ignorant questions Gregory Stark <stark@enterprisedb.com>
Re: Moving to postgresql and some ignorant questions "Phoenix Kiula" <phoenix.kiula@gmail.com>
Re: Moving to postgresql and some ignorant questions Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: Moving to postgresql and some ignorant questions Ron Johnson <ron.l.johnson@cox.net>
Re: Moving to postgresql and some ignorant questions Alban Hertroys <alban@magproductions.nl>
Re: Moving to postgresql and some ignorant questions "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Moving to postgresql and some ignorant questions "Phoenix Kiula" <phoenix.kiula@gmail.com>
Re: Moving to postgresql and some ignorant questions "Trevor Talbot" <quension@gmail.com>
Re: Moving to postgresql and some ignorant questions "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Moving to postgresql and some ignorant questions Gregory Stark <stark@enterprisedb.com>
Re: Moving to postgresql and some ignorant questions "Phoenix Kiula" <phoenix.kiula@gmail.com>
Re: Moving to postgresql and some ignorant questions Bill Moran <wmoran@potentialtech.com>
Re: Moving to postgresql and some ignorant questions "Mikko Partio" <mpartio@gmail.com>
Re: Moving to postgresql and some ignorant questions Gregory Stark <stark@enterprisedb.com>
Re: Moving to postgresql and some ignorant questions Thomas Kellerer <spam_eater@gmx.net>
Re: Moving to postgresql and some ignorant questions "Phoenix Kiula" <phoenix.kiula@gmail.com>
Thank you AM. Very useful note, must appreciate the info you shared.

About COPY, I have two simple questions:

1. Is there anything like an ALTER DATABASE command? I would like to
change the character set without having to recreate the DATABASE
again!

2. Also, when I do a mysqldump I seem to be ending up with "\r" in my
lines, or so the COPY command tells me:

    ERROR:  literal carriage return found in data
    HINT:  Use "\r" to represent carriage return.
    CONTEXT:  COPY links, line 962974

But afaik, there is nothing in my data in MySQL that contains the new
line characters! I have checked and rechecked in the DB to find such
characters. I cannot open that text file to check because it contains
a lot of data (from about 7 million records). So I tried to do a "grep
'\r' FILENAME" but that doesn't help either because of course there is
a newline character, that is what is used to separate a line!  Is
there anything else I can do to make sure mysqldump data comes
through? Perhaps separate fields by TABS and lines by a specific
character such as "`"?

TIA for any thoughts.
В списке pgsql-general по дате отправления
От: Simon Riggs
Дата:
От: Ron Johnson
Дата:
FAQ