Re: Drop view - Mailing list pgsql-general

From Tom Lane
Subject Re: Drop view
Date
Msg-id 4913.989595021@sss.pgh.pa.us
Whole thread Raw
In response to Drop view  (Keith Siu <keith@kanetop.com>)
List pgsql-general
Keith Siu <keith@kanetop.com> writes:
> I ve made a mistake to create a view " all staff" and can't drop it
> everytime I descript or drop the view , it appear Error as below  :

> template1> \d all staff;
> ERROR: nodeRead : Bad type 0
> template1>drop view all staff;
> ERROR :parser: parser error at or near "all"

Try quoting the name properly:

    drop view " all staff";

BTW, 6.5.3 is ancient.  Consider updating.

            regards, tom lane

pgsql-general by date:

Previous
From: Joel Burton
Date:
Subject: Re: Upcoming PostgreSQL seminars
Next
From: Tom Lane
Date:
Subject: Re: Re: Query not using index