From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mladen Gogala <gogala.mladen@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Lazy View's Column Computing
Date: Mon, 02 Aug 2021 19:38:49 -0400
Message-ID: <1661401.1627947529@sss.pgh.pa.us> (raw)
In-Reply-To: <65c04e3a-ca63-166c-8689-9c8cd89d972f@gmail.com>
References: <DB9PR07MB7180094FC2775BFD3A61CC0DCBEF9@DB9PR07MB7180.eurprd07.prod.outlook.com>
<65c04e3a-ca63-166c-8689-9c8cd89d972f@gmail.com>
Mladen Gogala <gogala.mladen@gmail.com> writes:
> The query from the view would probably merge view with the original and
> optimize everything as a single query. Unfortunately, there is no way to
> tell:
> mgogala=# explain select ename,job,sal from acct_view;
> QUERY PLAN
> ----------------------------------------------------
> Seq Scan on emp (cost=0.00..1.18 rows=3 width=21)
> Filter: (deptno = 10)
> (2 rows)
> The only tool that you have at your disposal is EXPLAIN.
No ... EXPLAIN VERBOSE would fill in the detail you want,
as somebody else already demonstrated in this thread.
regards, tom lane
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: tgl@sss.pgh.pa.us, gogala.mladen@gmail.com
Subject: Re: Lazy View's Column Computing
In-Reply-To: <1661401.1627947529@sss.pgh.pa.us>
References: <DB9PR07MB7180094FC2775BFD3A61CC0DCBEF9@DB9PR07MB7180.eurprd07.prod.outlook.com> <65c04e3a-ca63-166c-8689-9c8cd89d972f@gmail.com> <1661401.1627947529@sss.pgh.pa.us>
* 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