Re: Can't drop a view ("view does not exist") that has an entry in "INFORMATION_SCHEMA.views" - Mailing list pgsql-general

From Guillaume Lelarge
Subject Re: Can't drop a view ("view does not exist") that has an entry in "INFORMATION_SCHEMA.views"
Date
Msg-id CAECtzeWLZ2tJDg=-Ax3Rj_LpAhtVaVaAbi1Gh+VCxVEAnu2KiA@mail.gmail.com
Whole thread Raw
In response to Can't drop a view ("view does not exist") that has an entry in "INFORMATION_SCHEMA.views"  ("Klaus Hofeditz ]project-open[" <klaus.hofeditz@project-open.com>)
Responses Re: Can't drop a view ("view does not exist") that has an entry in "INFORMATION_SCHEMA.views"
List pgsql-general

Le 17 nov. 2014 22:49, "Klaus Hofeditz ]project-open[" <klaus.hofeditz@project-open.com> a écrit :
>
> Hi guys,
> I need to drop a view in order  to alter a type of a column: numeric(12,1) ->  numeric(12,2):
>
> ERROR:  cannot alter type of a column used by a view or rule DETAIL:  rule _RETURN on view "TransTasksCube" depends on column "billable_units"
>
> Trying to delete it, I get:
>
> projop=# drop view TransTasksCube;
> ERROR:  view "transtaskscube" does not exist
>
> FYI: VIEW also shows up in table INFORMATION_SCHEMA.views:
>
> projop=# select table_name from INFORMATION_SCHEMA.views where table_name like '%Trans%';
>    table_name
> ----------------
>  TransTasksCube
> (1 row)

You need double quotes because of the upper case letters:

drop view "TransTasksCube";

pgsql-general by date:

Previous
From: "Klaus Hofeditz ]project-open["
Date:
Subject: Can't drop a view ("view does not exist") that has an entry in "INFORMATION_SCHEMA.views"
Next
From: Merlin Moncure
Date:
Subject: Re: Managing Key Value tags on rows