Re: Drop view

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Keith Siu <keith(at)kanetop(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Drop view
Date: 2001-05-11 15:30:21
Message-ID: 4913.989595021@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Keith Siu <keith(at)kanetop(dot)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

In response to

  • Drop view at 2001-05-09 10:51:01 from Keith Siu

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-05-11 15:42:37 Re: defunct postmasters
Previous Message Joseph 2001-05-11 15:27:16 single quotes in a select statement