X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C53E947639F for ; Thu, 24 Apr 2003 11:42:02 -0400 (EDT) Received: from mailhub1.sghms.ac.uk (firewall.sghms.ac.uk [194.82.50.2]) by postgresql.org (Postfix) with ESMTP id BA50F476391 for ; Thu, 24 Apr 2003 11:42:01 -0400 (EDT) Received: from [194.82.51.24] (helo=imail) by mailhub1.sghms.ac.uk with esmtp (Exim 4.12) id 198iss-0002tJ-00; Thu, 24 Apr 2003 16:43:38 +0100 Received: from [172.16.20.3] (mrc1-003.sghms.ac.uk [172.16.20.3]) by imail.sghms.ac.uk (iPlanet Messaging Server 5.1 HotFix 0.7 (built May 7 2002)) with ESMTPA id <0HDU00BEAU8N02@imail.sghms.ac.uk>; Thu, 24 Apr 2003 16:41:11 +0100 (BST) Date: Thu, 24 Apr 2003 16:40:03 +0100 From: Adam Witney Subject: Re: Creating schema for multiple tables/fields/indices. In-reply-to: <009601c30a76$f74e5330$6401a8c0@lcshost> To: dlangschied , pgsql-admin Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT User-Agent: Microsoft-Entourage/10.1.1.2418 X-MailScanner-Information: Please contact sysadmin at sghms.ac.uk for more information X-MailScanner-MH1: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-115.2, required 5, BAYES_20, IN_REP_TO, QUOTED_EMAIL_TEXT, USER_AGENT_ENTOURAGE, USER_IN_WHITELIST) X-Spam-Status: No, hits=-18.7 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,USER_AGENT_ENTOURAGE 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/336 X-Sequence-Number: 8491 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.