Re: Problem Postgres importation of sql file

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Kelly Kane <kellykann_1(at)hotmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Problem Postgres importation of sql file
Date: 2005-04-11 02:37:06
Message-ID: 20050411023706.GC23646@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sun, Apr 10, 2005 at 13:06:15 +0000,
Kelly Kane <kellykann_1(at)hotmail(dot)com> wrote:
>
> I'm using PgAdminIII for postgres and the software I used to create tables
> is called "DB Designer" but the sql file generated doesn't work with
> postgres if I try to import from this file, it makes errors (for example
> unsigned, or auto-incrément don't exist in Postrgeres compared to mysql).

If you like the tool you are using, then postprocessing the generated script
might be a good solution for you.

It shouldn't be too hard to write a script in perl (or some other scripting
language) that substitutes keywords that are roughly equivalent in postgres
for the ones that don't work.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message John DeSoi 2005-04-11 02:44:12 Re: PostgreSQL 8.0 installation on Windows XP installation
Previous Message Michael Fuhr 2005-04-11 01:45:03 Re: postgres help