Re: Migration from SQLServer - Mailing list pgsql-general

From Jeff Eckermann
Subject Re: Migration from SQLServer
Date
Msg-id 20030516131406.51012.qmail@web20810.mail.yahoo.com
Whole thread Raw
In response to Re: Migration from SQLServer  (Tapan Trivedi <ttrivedi@webifyservices.com>)
List pgsql-general
--- Tapan Trivedi <ttrivedi@webifyservices.com> wrote:
> Thanks Nigel but too late :-((
>
> Did try something and got really messed up. I guess
> database recreation
> is the only alternative left. Actually wanted to do
> this in 2 hrs time -
> already am late by a day.

This need not take a long time (unless you have a
really huge amount of data).  Just dump the schema
(table definitions etc.) and the data separately (man
pg_dump for details).  Check that the dump files are
ok, then drop the database.  Edit the schema dump to
force everything to lower case (easy with a small
script).  Restore the database:
psql < schema.dump
psql < data.dump
and you are fixed.

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

pgsql-general by date:

Previous
From: "Pedro C. Arias"
Date:
Subject: Tool for BackUp
Next
From: Jeff Eckermann
Date:
Subject: Re: Rollback when value too long