From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Goldberg <josh@4dmatrix.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: experimenting with coalesce, strange EXPLAIN results
Date: Thu, 04 Sep 2003 21:32:10 -0400
Message-ID: <19743.1062725530@sss.pgh.pa.us> (raw)
In-Reply-To: <3F57C59C.9060600@4dmatrix.com>
References: <3F57C59C.9060600@4dmatrix.com>
Josh Goldberg <josh@4dmatrix.com> writes:
> I was experimenting with moving some of my case logic out of the
> application and into sql and found a strange EXPLAIN result with one of
> my COALESCE statements. Why is each subselect listed twice? This is in
> 7.3.4 on freebsd 4.8.
Prior to 7.4, COALESCE is just a parse-time macro for a CASE construct,
and so the items do appear twice in the CASE.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, josh@4dmatrix.com
Subject: Re: experimenting with coalesce, strange EXPLAIN results
In-Reply-To: <19743.1062725530@sss.pgh.pa.us>
References: <3F57C59C.9060600@4dmatrix.com> <19743.1062725530@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