X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 20CF4475E9D for ; Thu, 24 Apr 2003 11:49:18 -0400 (EDT) Received: from smtp805.mail.sc5.yahoo.com (smtp805.mail.sc5.yahoo.com [66.163.168.184]) by postgresql.org (Postfix) with SMTP id 1D1F6474E42 for ; Thu, 24 Apr 2003 11:49:17 -0400 (EDT) Received: from adsl-67-38-21-196.dsl.sfldmi.ameritech.net (HELO lcshost) (dlangschied@ameritech.net@67.38.21.196 with login) by smtp-sbc-v1.mail.vip.sc5.yahoo.com with SMTP; 24 Apr 2003 15:49:21 -0000 Message-ID: <01b901c30a79$14170780$6401a8c0@lcshost> From: "dlangschied" To: "Adam Witney" Cc: "pgsql-admin" References: Subject: Re: Creating schema for multiple tables/fields/indices. Date: Thu, 24 Apr 2003 11:49:23 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=-13.4 required=5.0 tests=BAYES_20,QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES 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/339 X-Sequence-Number: 8494 Thanks! This looks doable. Sincerely, David Langschied Langschied Consulting Services 25644 Mackinac Roseville, MI 48066 Phone: (586)777-7542 Cell: (248)789-8493 e-mail: dlangschied@ameritech.net ----- Original Message ----- From: "Adam Witney" To: "dlangschied" ; "pgsql-admin" Sent: Thursday, April 24, 2003 11:40 AM Subject: Re: [ADMIN] Creating schema for multiple tables/fields/indices. > > If you have the CREATE statements all written out in one file (eg > create_stuff.sql) > > psql < create_stuff.sql > > Or you could connect with psql and type > > \i create_stuff.sql > > > > > > > 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? > > > > Sincerely, > > > > David Langschied > > Langschied Consulting Services > > 25644 Mackinac > > Roseville, MI 48066 > > > > Phone: (586)777-7542 > > Cell: (248)789-8493 > > e-mail: dlangschied@ameritech.net > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 2: you can get off all lists at once with the unregister command > > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean.