pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem Postgres importation of sql file
2+ messages / 2 participants
[nested] [flat]

* Problem Postgres importation of sql file
@ 2005-04-10 13:06  Kelly Kane <kellykann_1@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Kelly Kane @ 2005-04-10 13:06 UTC (permalink / raw)
  To: pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Problem Postgres importation of sql file
@ 2005-04-11 02:37  Bruno Wolff III <bruno@wolff.to>
  parent: Kelly Kane <kellykann_1@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruno Wolff III @ 2005-04-11 02:37 UTC (permalink / raw)
  To: Kelly Kane <kellykann_1@hotmail.com>; +Cc: pgsql-admin

On Sun, Apr 10, 2005 at 13:06:15 +0000,
  Kelly Kane <kellykann_1@hotmail.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.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-04-11 02:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-10 13:06 Problem Postgres importation of sql file Kelly Kane <kellykann_1@hotmail.com>
2005-04-11 02:37 ` Bruno Wolff III <bruno@wolff.to>

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