Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4443E116AE5D for ; Tue, 3 Jan 2012 17:52:29 -0400 (AST) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RiCHU-0001Va-Lr for pgsql-admin@postgresql.org; Tue, 03 Jan 2012 21:52:29 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RiCHH-00048E-Cv for pgsql-admin@postgresql.org; Tue, 03 Jan 2012 13:52:15 -0800 Date: Tue, 3 Jan 2012 13:52:15 -0800 (PST) From: Tripura To: pgsql-admin@postgresql.org Message-ID: <1325627535392-5118072.post@n5.nabble.com> Subject: Drop Schema from Postgres MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.1 (/) X-Archive-Number: 201201/22 X-Sequence-Number: 38934 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.