Problem Postgres importation of sql file

Problem Postgres importation of sql file

am 10.04.2005 15:06:15 von Kelly Kane

Hi,

Please, I would like to know if there's any software which let create tables
(for database) and export them into a sript which can be used by postgres to
import the database created ?

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).

Please if you know how to do, explain to me.
Thank you very much

____________________________________________________________ _____
MSN Messenger : vidéoconférence gratuite http://g.msn.fr/FR1001/866


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Re: Problem Postgres importation of sql file

am 11.04.2005 04:37:06 von Bruno Wolff III

On Sun, Apr 10, 2005 at 13:06:15 +0000,
Kelly Kane wrote:
>=20
> I'm using PgAdminIII for postgres and the software I used to create tab=
les=20
> is called "DB Designer" but the sql file generated doesn't work with=20
> postgres if I try to import from this file, it makes errors (for exampl=
e=20
> unsigned, or auto-incr=E9ment don't exist in Postrgeres compared to mys=
ql).

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

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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings