From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Tripura <k_tripura@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Drop Schema from Postgres
Date: Thu, 05 Jan 2012 10:22:59 -0600
Message-ID: <4F057A0302000025000443ED@gw.wicourts.gov> (raw)
In-Reply-To: <1325627535392-5118072.post@n5.nabble.com>
References: <1325627535392-5118072.post@n5.nabble.com>
Tripura <k_tripura@hotmail.com> wrote:
> I am trying to drop a schema by writing the following line
>
> DROP SCHEMA "xxx" IF EXISTS
The syntax requires:
DROP SCHEMA IF EXISTS "xxx";
> I have two issues here -
> 1> I am not sure how to specify the db from which the schema
> should be deleted
You connect to a particular database. All operations are against
that database.
> 2> I am getting the following error message -- "DROP: command not
> found"
Perhaps you should try this in an interactive session and paste the
actual error lines. I get this:
ERROR: syntax error at or near "IF"
LINE 1: DROP SCHEMA "xxx" IF EXISTS;
-Kevin
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: Kevin.Grittner@wicourts.gov, k_tripura@hotmail.com
Subject: Re: Drop Schema from Postgres
In-Reply-To: <4F057A0302000025000443ED@gw.wicourts.gov>
References: <1325627535392-5118072.post@n5.nabble.com> <4F057A0302000025000443ED@gw.wicourts.gov>
* 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