pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Victor Yegorov <viy@pirmabanka.lv>
To: dlangschied <dlangschied@ameritech.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Creating schema for multiple tables/fields/indices.
Date: Thu, 24 Apr 2003 18:46:04 +0300
Message-ID: <20030424154604.GD2407@pirmabanka.lv> (raw)
In-Reply-To: <009601c30a76$f74e5330$6401a8c0@lcshost>
References: <009601c30a76$f74e5330$6401a8c0@lcshost>

* dlangschied <dlangschied@ameritech.net> [24.04.2003 18:39]:
> I just downloaded postgreSQL.  I have finished the install and everything
> looks okay.  I am now ready to create a db and add tables/fields/indices.  I
> have approx. 100 tables 2,000 fields and 500 indices.  Before I spend an
> ungodly amount of time doing these individually, can I load an entire schema
> via some scripting method?

Do you have structure of your stuff (DDL) as SQL statements somewhere?

If yes, then find how to feed all that stuff to psql (I suggest using `-c'
flag or simply pipe to psql) - see docs.

If no, then you'll have to spent some time on creation of your DB structure.

-- 

Victor Yegorov

view thread (4+ messages)  latest in thread

Message-ID: <20030424154604.GD2407@pirmabanka.lv>
Permalink:  ../20030424154604.GD2407@pirmabanka.lv/
Also on:    postgresql.org/message-id/20030424154604.GD2407@pirmabanka.lv

 · 

reply

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: viy@pirmabanka.lv, dlangschied@ameritech.net
  Subject: Re: Creating schema for multiple tables/fields/indices.
  In-Reply-To: <20030424154604.GD2407@pirmabanka.lv>
  References: <009601c30a76$f74e5330$6401a8c0@lcshost> <20030424154604.GD2407@pirmabanka.lv>

* 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