From: John R Pierce <pierce@hogranch.com>
To: Greenhorn <user.postgresql@gmail.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Oracle to PostgreSQL
Date: Sun, 15 Mar 2009 16:41:37 -0700
Message-ID: <49BD9231.4010602@hogranch.com> (raw)
In-Reply-To: <ddcb1c340903151635xdb9ee7fva0edd6adc7575662@mail.gmail.com>
References: <ddcb1c340903151635xdb9ee7fva0edd6adc7575662@mail.gmail.com>
Greenhorn wrote:
> Unfortunately When I execute the above files using \i I am getting errors like
>
> ERROR: syntax error at or near "("
> LINE 4: SUB_TYPE NUMBER(3) NOT NULL,
>
> Obviously 'number' is not PostgreSQL data type so is 'varchar2'. What
> is your suggestion to create these tables in PostgreSQL? Should I
> pre-process using Sed/Awk to find/replace the field type first? Any
> recommendation is greatly appreciated :)
>
change number to numeric, and varchar2 to char and you'll likely be good.
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-general@postgresql.org
Cc: pierce@hogranch.com, user.postgresql@gmail.com, pgsql-sql@postgresql.org
Subject: Re: Oracle to PostgreSQL
In-Reply-To: <49BD9231.4010602@hogranch.com>
References: <ddcb1c340903151635xdb9ee7fva0edd6adc7575662@mail.gmail.com> <49BD9231.4010602@hogranch.com>
* 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