Re: pg 7.2.3 -> pg 7.3.3: pg_atoi error

From: Mark Stosberg <mark(at)summersault(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: pg 7.2.3 -> pg 7.3.3: pg_atoi error
Date: 2003-08-02 02:39:36
Message-ID: slrnbim92v.2a0t.mark@tanagra.summersault.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Savage 2003-08-02 08:43:20 PostgreSQL to MSDE conversion help
Previous Message Tom Lane 2003-08-02 02:27:43 Re: merging 2 dumps