From: manuel@des01.sanyres.es
To: pgsql-admin@postgresql.org
Subject: Re: Need Help in creating script
Date: Thu, 17 May 2001 11:42:41 +0000 (UTC)
Message-ID: <slrn9g7aso.uuc.manuel@des01.sanyres.es> (raw)
References: <002401c0de4d$67f59650$6d01010a@prashant>
<9dutbv$2hdu$2@news.tht.net>
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 <database> > <file>
createdb <newdatabase>
cat <file> | psql <newdatabase>
--
Manuel Cano Muñoz
------------------------------
SANYRES, S.A.
Director Dpto. Sistemas
manuel@sanyres.com
manuel@sanyres.es
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: manuel@des01.sanyres.es
Subject: Re: Need Help in creating script
In-Reply-To: <slrn9g7aso.uuc.manuel@des01.sanyres.es>
References: <002401c0de4d$67f59650$6d01010a@prashant> <9dutbv$2hdu$2@news.tht.net> <slrn9g7aso.uuc.manuel@des01.sanyres.es>
* 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