X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 24601474E42 for ; Thu, 24 Apr 2003 11:46:24 -0400 (EDT) Received: from shield.pirmabanka.lv (shield.pirmabanka.lv [195.114.57.4]) by postgresql.org (Postfix) with ESMTP id 0BB5B475E9D for ; Thu, 24 Apr 2003 11:45:52 -0400 (EDT) Received: from wall2.pirmabanka.lv (wall2-pub.pirmabanka.lv [195.114.57.14]) by shield.pirmabanka.lv (8.12.9/8.12.9) with SMTP id h3OFjtje026314 for ; Thu, 24 Apr 2003 18:45:56 +0300 Received: from share.pirmabanka.lv ([10.0.0.10]) by wall2.pirmabanka.lv; Thu, 24 Apr 2003 18:45:55 +0300 (EET DST) Received: from pc311x1.pirmabanka.lv (localhost.localdomain [127.0.0.1]) by pirmabanka.lv (8.11.6/8.11.6) with SMTP id h3OFjsX09394 for ; Thu, 24 Apr 2003 18:45:54 +0300 Received: (qmail 5752 invoked by uid 100); 24 Apr 2003 15:46:05 -0000 Date: Thu, 24 Apr 2003 18:46:04 +0300 From: "Victor Yegorov" To: "dlangschied" Cc: Subject: Re: Creating schema for multiple tables/fields/indices. Message-ID: <20030424154604.GD2407@pirmabanka.lv> Mail-Followup-To: "dlangschied" , References: <009601c30a76$f74e5330$6401a8c0@lcshost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <009601c30a76$f74e5330$6401a8c0@lcshost> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-37.8 required=5.0 tests=BAYES_10,IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/338 X-Sequence-Number: 8493 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * dlangschied [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 sch= ema > 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. --=20 Victor Yegorov --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+qAa82RKGLEykUDYRAlD9AKDCQbkeBMB9pFWBjx9vCx0du0FnNgCfW1yp UH1BJ0pkbFWjV0h1rbIb1HM= =osVr -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--