From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Celia McInnis <celia.mcinnis@gmail.com>
To: Erik Wienhold <ewie@ewie.name>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Dropping a temporary view?
Date: Wed, 20 Mar 2024 08:46:54 -0700
Message-ID: <5b2ebf67-df3b-4b94-8a27-74d20d28f014@aklaver.com> (raw)
In-Reply-To: <CAGD6t7+xR3YpP3QurENxL1p1FAv8zohd_8cg=tNRX10NZGHQZA@mail.gmail.com>
References: <CAGD6t7JniiFU5_tu=1Dpa1-E_HjVdWyT8T7RaU6uTZ-7WF9TiQ@mail.gmail.com>
<p3bniwsob54rr2y436hhjkl6c44k3refzzyjeqmh365fig726a@qq6ht7hzh4j6>
<CAGD6t7+xR3YpP3QurENxL1p1FAv8zohd_8cg=tNRX10NZGHQZA@mail.gmail.com>
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.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, celia.mcinnis@gmail.com, ewie@ewie.name
Subject: Re: Dropping a temporary view?
In-Reply-To: <5b2ebf67-df3b-4b94-8a27-74d20d28f014@aklaver.com>
References: <CAGD6t7JniiFU5_tu=1Dpa1-E_HjVdWyT8T7RaU6uTZ-7WF9TiQ@mail.gmail.com> <p3bniwsob54rr2y436hhjkl6c44k3refzzyjeqmh365fig726a@qq6ht7hzh4j6> <CAGD6t7+xR3YpP3QurENxL1p1FAv8zohd_8cg=tNRX10NZGHQZA@mail.gmail.com> <5b2ebf67-df3b-4b94-8a27-74d20d28f014@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox