Re: pg 7.2.3 -> pg 7.3.3: pg_atoi error

Поиск
Список
Период
Сортировка
От Mark Stosberg
Тема Re: pg 7.2.3 -> pg 7.3.3: pg_atoi error
Дата
Msg-id slrnbim92v.2a0t.mark@tanagra.summersault.com
обсуждение исходный текст
Ответ на pg 7.2.3 -> pg 7.3.3: pg_atoi error  ("Marcin Gil" <marcin.gil@audax.com.pl>)
Список pgsql-novice
> I get an pg_atoi error while reading in co_sys_meta_vtable,
> I suppose at this
>  "id" integer DEFAULT nextval('co_sys_meta_vtable_sqid'::text),
> particular line.

Could you post the exact error message you are getting?

> Is there a way to successfully transport such a db into new version?
> The dump has almost 3G, so hand-editing is not a case..

Here are  some suggestions:

1. Try dumping and importing just the schema first. In my experience,
most of the issues are in there when upgrading, and the files are much
smaller.

2. If you suspect you know what change to make, you can use command line
tools such as Perl to do a find and replace on the file. Here's an
exapmle for Perl, which also creates a ".bak" file:

    perl -pi.bak -e 's/old/new/' schema.sql

3. Check the ChangeLogs between the versions in question to see if they
provide a clue about what might have changed.

4. Some editors will handle huge files. I suspect vim will do fairly
well. Other editors may be more tailored towards this application.

I have an old document about upgrading Postgres. Some of the concepts
may still apply:

http://mark.stosberg.com/Tech/postgres/pg-65-7-upgrade.html

    Mark

--
http://mark.stosberg.com/

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: merging 2 dumps
Следующее
От: Nabil Sayegh
Дата:
Сообщение: Re: merging 2 dumps