X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 79DF8D1B4E1 for ; Sun, 19 Oct 2003 02:37:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 90271-07 for ; Sat, 18 Oct 2003 23:37:10 -0300 (ADT) Received: from ohsmtp02.ogw.rr.com (ohsmtp02.ogw.rr.com [65.24.7.37]) by svr1.postgresql.org (Postfix) with ESMTP id B7260D1B4E5 for ; Sat, 18 Oct 2003 23:36:57 -0300 (ADT) Received: from miltonstreet.com (cvg-65-27-171-120.cinci.rr.com [65.27.171.120]) by ohsmtp02.ogw.rr.com (8.12.10/8.12.2) with SMTP id h9J2b0I5000484 for ; Sat, 18 Oct 2003 22:37:01 -0400 (EDT) Received: (qmail 20939 invoked by uid 1001); 19 Oct 2003 02:37:00 -0000 Date: Sat, 18 Oct 2003 22:37:00 -0400 From: Sam Carleton To: pgsql-admin@postgresql.org Subject: sql scripts Message-ID: <20031019023700.GA20814@miltonstreet.com> Mail-Followup-To: pgsql-admin@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/240 X-Sequence-Number: 10801 I am new to postgres and your mailing lists, please let me know if I am posting in the wrong list. I am working on creating my first database in Postgres. In the script that will create all the tables for the firs time, I would like to have a conditional statement to delete a table, if it already exists. I know the other databases create such a condtional statement for you when you export the schema. What would such a conditional statement look like in Postgres's sql? sam