pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Jarmo Järvenpää <Jarmo.Jarvenpaa@softers.net>
To: pgsql-admin@postgresql.org
Subject: Re: Upgrading 7.2.4 to 7.4.1
Date: Sat, 21 Feb 2004 21:09:39 -0500
Message-ID: <200402212109.39694.xzilla@users.sourceforge.net> (raw)
In-Reply-To: <4030BEAE.8060108@softers.net>
References: <4030BEAE.8060108@softers.net>

You might get better results using 7.4's pg_dump against the 7.2 database... 
worth a try anyway.

Robert Treat

On Monday 16 February 2004 07:59, Jarmo Järvenpää wrote:
> Dear all,
>
> I've got an old 7.2.4 DB which I hoped to upgrade to 7.4.1.
> The old syntax used for creating tables had lines like
> ..
> id integer DEFAULT '',
>
> which translates to this error:
>
> pg_restore: [archiver (db)] could not execute query: ERROR:  invalid
> input syntax for integer: ""
>
> I found out that integer with '' as default is not acceptable after 7.3.
>   Also, some complaints were given with the data, particulary numerous
> "\N" lines when restoring (this can be worked out by using -d switch
> when dumping).
>
> Also, schemas are not going to be created (some 7.3 documents gave this
> up).
>
> Thus, must I update every DB creation script by hand and try to restore
> only the data?
>
>
> Regards,
> Jarmo
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL



view thread (3+ messages)

Message-ID: <200402212109.39694.xzilla@users.sourceforge.net>
Permalink:  ../200402212109.39694.xzilla@users.sourceforge.net/
Also on:    postgresql.org/message-id/200402212109.39694.xzilla@users.sourceforge.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: xzilla@users.sourceforge.net, Jarmo.Jarvenpaa@softers.net
  Subject: Re: Upgrading 7.2.4 to 7.4.1
  In-Reply-To: <200402212109.39694.xzilla@users.sourceforge.net>
  References: <4030BEAE.8060108@softers.net> <200402212109.39694.xzilla@users.sourceforge.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox