From: Ravi Krishna <sravikrishna@aol.com>
To: kpi6288@gmail.com
To: pgsql-general@postgresql.org
Subject: Re: CTE with JOIN of two tables is much faster than a regular query
Date: Sat, 18 Aug 2018 16:25:14 +0000 (UTC)
Message-ID: <807123113.9511341.1534609514205@mail.yahoo.com> (raw)
In-Reply-To: <004b01d436d6$ff96c840$fec458c0$@gmail.com>
References: <004b01d436d6$ff96c840$fec458c0$@gmail.com>
> What can I do to improve the performance of the regular query without using a CTE?
Why do you care ? When I find that I can write a SQL 3 different ways, I will go for the most
efficient one. So why not accept the CTE version of this SQL. Just curious.
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: sravikrishna@aol.com, kpi6288@gmail.com
Subject: Re: CTE with JOIN of two tables is much faster than a regular query
In-Reply-To: <807123113.9511341.1534609514205@mail.yahoo.com>
References: <004b01d436d6$ff96c840$fec458c0$@gmail.com> <807123113.9511341.1534609514205@mail.yahoo.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