From: Long Island Vision Management <livm@livm.net>
To: pgsql-admin@postgresql.org
Subject: DDL import question
Date: Wed, 11 Sep 2002 16:02:24 -0400
Message-ID: <000001c259ce$28b23d60$b392ffcc@mhegarty> (raw)
hi everyone, I am trying to figure out how to import a DDL I got from
one of out developers into a postgres DB. I am using linux RH 7.1 and
version 7.2.2 or pgsql. The developers are using some visio and access
tools to generate the database structures and DDL files and I want to
import them to pgsql. Is it as simple as issuing something like the
following
psql -U username dbname < file.ddl
I tried that and I am getting errors. Some are quote problems and
others seem to be from the CREATE statements. I figure there has to be
a script of some kind to do this type of import since DDL's are pretty
standard. I read about a hack to work around this by setting up ODBC
connections and stuff, but there has to be an easier way.
Thanks in advance for all you help
-Matt
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-admin@postgresql.org
Cc: livm@livm.net
Subject: Re: DDL import question
In-Reply-To: <000001c259ce$28b23d60$b392ffcc@mhegarty>
References: <000001c259ce$28b23d60$b392ffcc@mhegarty>
* 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