From: Tripura <k_tripura@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Drop Schema from Postgres
Date: Tue, 3 Jan 2012 13:52:15 -0800 (PST)
Message-ID: <1325627535392-5118072.post@n5.nabble.com> (raw)
Hi,
I am trying to execute a few postgres commands from a bash file
I am trying to drop a schema by writing the following line
DROP SCHEMA "xxx" IF EXISTS
I have two issues here -
1> I am not sure how to specify the db from which the schema should be
deleted
2> I am getting the following error message -- "DROP: command not found"
Can anyone help me with this issue
Thanku in advance
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Drop-Schema-from-Postgres-tp5118072p5118072.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: k_tripura@hotmail.com
Subject: Re: Drop Schema from Postgres
In-Reply-To: <1325627535392-5118072.post@n5.nabble.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