Re: Dropping a temporary view?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Celia McInnis <celia(dot)mcinnis(at)gmail(dot)com>, Erik Wienhold <ewie(at)ewie(dot)name>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Dropping a temporary view?
Date: 2024-03-20 15:46:54
Message-ID: 5b2ebf67-df3b-4b94-8a27-74d20d28f014@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/20/24 08:39, Celia McInnis wrote:
> Ok, thanks - so I guess that means that if there is both a temporary and
> a non temporary view called "tempvie",
>
> DROP VIEW tempview;
>
> will remove the 1st tempview found, which with my path is the temporary
> one. Is there some reason why it then took 7 minutes to select from the
> non-temporary view tempview after I dropped the temporary view tempview?
>
> I have sometimes had some very long query times when running query
> software, and maybe they are resulting from my switching between
> temporary and non-temporary views of the same name while debugging. If
> so, is there something I should be doing to clean up any temporary
> messes I am creating?

What is the purpose of the temp view over the the regular view process?

How do they differ in data?

Is all the above happening in one session?

Have you run EXPLAIN ANALYZE on the select from the regular view?

>
> Thanks,
> Celia McInnis
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2024-03-20 16:33:47 Re: Dropping a temporary view?
Previous Message Adrian Klaver 2024-03-20 15:40:11 Re: SSL error on install of PEM during Posgres install