pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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>&gt;From: Sam Carleton <EHC@LINUX-INFO.NET>
<DIV></DIV>&gt;To: pgsql-admin@postgresql.org 
<DIV></DIV>&gt;Subject: [ADMIN] sql scripts 
<DIV></DIV>&gt;Date: Sat, 18 Oct 2003 22:37:00 -0400 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I am new to postgres and your mailing lists, please let me know if I 
<DIV></DIV>&gt;am posting in the wrong list. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I am working on creating my first database in Postgres. In the 
<DIV></DIV>&gt;script that will create all the tables for the firs time, I would 
<DIV></DIV>&gt;like to have a conditional statement to delete a table, if it 
<DIV></DIV>&gt;already exists. I know the other databases create such a condtional 
<DIV></DIV>&gt;statement for you when you export the schema. What would such a 
<DIV></DIV>&gt;conditional statement look like in Postgres's sql? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;sam 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;---------------------------(end of broadcast)--------------------------- 
<DIV></DIV>&gt;TIP 3: if posting/reading through Usenet, please send an appropriate 
<DIV></DIV>&gt; subscribe-nomail command to majordomo@postgresql.org so that your 
<DIV></DIV>&gt; 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>



view thread (4+ messages)

Message-ID: <BAY99-F37s2LKVCoOf700002d6c@hotmail.com>
Permalink:  ../BAY99-F37s2LKVCoOf700002d6c@hotmail.com/
Also on:    postgresql.org/message-id/BAY99-F37s2LKVCoOf700002d6c@hotmail.com

 · 

reply

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