Re: Drop Schema from Postgres

From: Walter Hurry <walterhurry(at)lavabit(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Drop Schema from Postgres
Date: 2012-01-05 18:50:15
Message-ID: je4rd7$be9$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

> Tripura <k_tripura(at)hotmail(dot)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;

He's not even in psql

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Wujek Srujek 2012-01-05 19:56:18 Postgres 9.1 client authentication for local, no password required?
Previous Message Kevin Grittner 2012-01-05 16:22:59 Re: Drop Schema from Postgres