X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ACFA753711 for ; Sun, 10 Apr 2005 23:18:02 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73204-10 for ; Mon, 11 Apr 2005 02:18:01 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 268255370D for ; Sun, 10 Apr 2005 23:18:00 -0300 (ADT) Received: (qmail 24210 invoked by uid 500); 11 Apr 2005 02:37:06 -0000 Date: Sun, 10 Apr 2005 21:37:06 -0500 From: Bruno Wolff III To: Kelly Kane Cc: pgsql-admin@postgresql.org Subject: Re: Problem Postgres importation of sql file Message-ID: <20050411023706.GC23646@wolff.to> Mail-Followup-To: Bruno Wolff III , Kelly Kane , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/127 X-Sequence-Number: 17140 On Sun, Apr 10, 2005 at 13:06:15 +0000, Kelly Kane 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.