Re: Dumping/Restoring with constraints?

Поиск
Список
Период
Сортировка
От Phoenix Kiula
Тема Re: Dumping/Restoring with constraints?
Дата
Msg-id e373d31e0808270820ia11a515se1110775ab29e998@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Dumping/Restoring with constraints?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Dumping/Restoring with constraints?  (Andrew Sullivan <ajs@commandprompt.com>)
Re: Dumping/Restoring with constraints?  (Bill Moran <wmoran@collaborativefusion.com>)
Список pgsql-general
On Wed, Aug 27, 2008 at 10:53 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

>
> No, you were right the first time: just feed the dump script to psql.
>



Ok. Tried that. Because there's no database, I have to execute the
psql command as "postgres" otherwise it doesn't work.

So here's my command:

  $ psql -d postgres -U postgres -h localhost < mydb.sql

This seems to be it. This is what I should be executing, except that
it spews out many errors, like:

   ERROR:  invalid byte sequence for encoding "UTF8": 0x80

This prevents my main table from being copied - Why can't the dump and
the restore just copy the file as-is, including the encoding and such?
What am I not doing right?

Thanks

В списке pgsql-general по дате отправления:

Предыдущее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Re: loop vs. aggregate was: update and group by/aggregate
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Dumping/Restoring with constraints?