Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f4IEVCA95642 for ; Fri, 18 May 2001 10:31:12 -0400 (EDT) (envelope-from pgsql-admin-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4HBvQA43720 for ; Thu, 17 May 2001 07:57:26 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f4HBggi93576 for pgsql-admin@postgresql.org; Thu, 17 May 2001 07:42:42 -0400 (EDT) (envelope-from news) From: manuel@des01.sanyres.es X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Need Help in creating script Date: Thu, 17 May 2001 11:42:41 +0000 (UTC) Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 38 Message-ID: References: <002401c0de4d$67f59650$6d01010a@prashant> <9dutbv$2hdu$2@news.tht.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: scrappy@hub.org User-Agent: slrn/0.9.7.0 (Linux) To: pgsql-admin@postgresql.org X-Archive-Number: 200105/87 X-Sequence-Number: 1434 In article <9dutbv$2hdu$2@news.tht.net>, Alexander Dederer wrote: > Prashant Sinha wrote: > >> This is a multi-part message in MIME format. >> >> ------=_NextPart_000_0021_01C0DE12.BB861C80 >> Content-Type: text/plain; charset="iso-8859-1" >> Content-Transfer-Encoding: quoted-printable >> >> Hi, >> I am a new postgre user. I had used sql commands to create database and >> tab= les. Is it possible to create a script or installable version on >> existing d= atabase which I could run on any machine and it would crearte >> the database = with all the tables and everything. Can anyone please help >> me with this? Thanks in advance, > > Look programm: > pg_dump > pg_dumpall > psql > > Use pg_dump. pg_dump > createdb cat | psql -- Manuel Cano Muņoz ------------------------------ SANYRES, S.A. Director Dpto. Sistemas manuel@sanyres.com manuel@sanyres.es