From: Priya G <sreepriya@hotmail.com>
To: ehc@linux-info.net
To: pgsql-admin@postgresql.org
Subject: Re: sql scripts
Date: Mon, 20 Oct 2003 15:50:27 -0400
Message-ID: <BAY99-F37s2LKVCoOf700002d6c@hotmail.com> (raw)
<html><div style='background-color:'><DIV>
<P>Use pg_dump -c</P>
<P>this will drop the db objects before creating them</P>
<P>Priya<BR><BR></P></DIV>
<DIV></DIV>>From: Sam Carleton <EHC@LINUX-INFO.NET>
<DIV></DIV>>To: pgsql-admin@postgresql.org
<DIV></DIV>>Subject: [ADMIN] sql scripts
<DIV></DIV>>Date: Sat, 18 Oct 2003 22:37:00 -0400
<DIV></DIV>>
<DIV></DIV>>I am new to postgres and your mailing lists, please let me know if I
<DIV></DIV>>am posting in the wrong list.
<DIV></DIV>>
<DIV></DIV>>I am working on creating my first database in Postgres. In the
<DIV></DIV>>script that will create all the tables for the firs time, I would
<DIV></DIV>>like to have a conditional statement to delete a table, if it
<DIV></DIV>>already exists. I know the other databases create such a condtional
<DIV></DIV>>statement for you when you export the schema. What would such a
<DIV></DIV>>conditional statement look like in Postgres's sql?
<DIV></DIV>>
<DIV></DIV>>sam
<DIV></DIV>>
<DIV></DIV>>---------------------------(end of broadcast)---------------------------
<DIV></DIV>>TIP 3: if posting/reading through Usenet, please send an appropriate
<DIV></DIV>> subscribe-nomail command to majordomo@postgresql.org so that your
<DIV></DIV>> message can get through to the mailing list cleanly
<DIV></DIV></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2749??PS=">Fretting that your Hotmail account may expire because you forgot to sign in enough? Get Hotmail Extra Storage today! </a> </html>
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: sreepriya@hotmail.com, ehc@linux-info.net
Subject: Re: sql scripts
In-Reply-To: <BAY99-F37s2LKVCoOf700002d6c@hotmail.com>
References: <BAY99-F37s2LKVCoOf700002d6c@hotmail.com>
* 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