Re: Hi iam the beginner - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Hi iam the beginner
Date
Msg-id dcc563d10812181603g716abb91n1e3f98e7ce1259af@mail.gmail.com
Whole thread Raw
In response to Hi iam the beginner  ("sai srujan" <creativesrujan@gmail.com>)
Responses Re: Hi iam the beginner  (Pedro Doria Meunier <pdoria@netmadeira.com>)
Re: Hi iam the beginner  (Richard Huxton <dev@archonet.com>)
List pgsql-general
On Mon, Dec 15, 2008 at 11:02 PM, sai srujan <creativesrujan@gmail.com> wrote:
>  Hi....
>               This is srujan and I am beginner of postgresql 8.1 and I have
> just stopped using mysql and i would like to use the dump (.sql file)
> created in it. I would like transfer the databases in my sql to postgresql
> 8.1. Please do reply. I am waiting for it.

If possible, go ahead and jump right into 8.3.5.  There's been quite a
few improvements over 8.1 in it.  And unlike Oracle, when a new pg
version is released, it's considered to really be production ready
right away, or at least within a month or so.  8.3.5 is a year old
now, and we've been running 8.3 in production since 8.3.3 came out and
it's fantastic.

The easiest way to transfer your database over is to dump the schema
first, and get that working on pgsql.  Beware mysqlisms, like quoting
identifiers with back ticks (worst idea ever really) and odd type
names, like tinyint or unsigned ints.  None of that stuff is standard.

Once you've got your schema to import, then dump the data from mysql
as either CSV or insert statements, whichever is easier, and import
that.  You might need to whip up some skills in perl, bash, php, awk,
or sed to massage your data to go in right.

And if you get stuck, post here...  Best of luck.

pgsql-general by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Error: Operator does not exist: "char"=integer
Next
From: "Scott Marlowe"
Date:
Subject: Re: Need help - Regarding Data Compression in PostgreSQL.