Re: experimenting with coalesce, strange EXPLAIN results

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Goldberg <josh(at)4dmatrix(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: experimenting with coalesce, strange EXPLAIN results
Date: 2003-09-05 01:32:10
Message-ID: 19743.1062725530@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Josh Goldberg <josh(at)4dmatrix(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2003-09-05 04:32:17 Re: Disk Utilization Increases And Time for Vacuum Increases.
Previous Message colin roald 2003-09-05 01:27:53 Re: age of statistics