Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id CBB2C53F48 for ; Thu, 5 Jan 2012 16:58:35 -0400 (AST) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RiuOP-0003tZ-L4 for pgsql-admin@postgresql.org; Thu, 05 Jan 2012 20:58:34 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RiuOB-0004Mj-TK for pgsql-admin@postgresql.org; Thu, 05 Jan 2012 12:58:19 -0800 Date: Thu, 5 Jan 2012 12:58:19 -0800 (PST) From: Tripura To: pgsql-admin@postgresql.org Message-ID: In-Reply-To: References: <1325627535392-5118072.post@n5.nabble.com> <4F057A0302000025000443ED@gw.wicourts.gov> Subject: Re: Drop Schema from Postgres MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25842_23181416.1325797099904" X-Pg-Spam-Score: -0.1 (/) X-Archive-Number: 201201/38 X-Sequence-Number: 38950 ------=_Part_25842_23181416.1325797099904 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I got the solution for this issue. Thanku Date: Thu, 5 Jan 2012 10:51:13 -0800 From: ml-node+s1045698n5123527h28@n5.nabble.com To: k_tripura@hotmail.com Subject: Re: Drop Schema from Postgres On Thu, 05 Jan 2012 10:22:59 -0600, Kevin Grittner wrote: > Tripura <[hidden email]> 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; He's not even in psql -- Sent via pgsql-admin mailing list ([hidden email]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin If you reply to this email, your message will be added to the discussion below: http://postgresql.1045698.n5.nabble.com/Drop-Schema-from-Postgres-tp5118072p5123527.html To unsubscribe from Drop Schema from Postgres, click here. NAML -- View this message in context: http://postgresql.1045698.n5.nabble.com/Drop-Schema-from-Postgres-tp5118072p5123827.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. ------=_Part_25842_23181416.1325797099904 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Hi,
I got the solution for this issue.
Thanku


Date: Thu, 5 Jan 2012 10:51:13 -0800
From: [hidden email]
To: [hidden email]
Subject: Re: Drop Schema from Postgres

On Thu, 05 Jan 2012 10:22:59 -0600, Kevin Grittner wrote:

> Tripura <[hidden email]> 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;
He's not even in psql


--
Sent via pgsql-admin mailing list ([hidden email])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



If you reply to this email, your message will be added to the discussion below:
http://postgresql.1045698.n5.nabble.com/Drop-Schema-from-Postgres-tp5118072p5123527.html
To unsubscribe from Drop Schema from Postgres, click here.
NAML


View this message in context: RE: Drop Schema from Postgres
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
------=_Part_25842_23181416.1325797099904--