Re: [BUGS] BUG #11661: CASE ELSE is evaluated although condition is true

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: michael(at)aplaypowered(dot)com, pgsql-bugs(at)postgresql(dot)org, pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #11661: CASE ELSE is evaluated although condition is true
Date: 2014-11-11 07:37:42
Message-ID: CABRT9RAnfbAxD2XQOsGDBnMz5Q2_botfBj_Xz3+v_mVSpbKSXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-docs

Hi

On Tue, Nov 11, 2014 at 9:14 AM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> This patch does not compile properly as a </sect2> is missing, and I
> think that you actually want to add this sect2 block at the bottom the
> sect1 block for conditional functions.

Sorry, I never got around to testing the build because I found a
working DocBook envrionment a PITA to set up. Should have mentioned
that in my email.

> "implementation" is as well a
> bit too general to name such a section, something like
> "functions-conditional-implementation" would be better.

+1

> Also, I am a
> bit dubious about adding a mention aggregate functions and their
> elements being evaluated in a paragraph for GROUP BY and HAVING
> clause.

Why? This page explains in what order the expressions in a SELECT
query are processed. Aggregates can only be found in SELECT queries
and their semantics are non-trivial, so it seems like a big omission
to me that their relation to other clauses is not discussed.

I think that's the most appropriate place for that, because GROUP BY,
HAVING and aggregates are closely related. And their execution occurs
after evaluating GROUP BY keys and before HAVING predicates, where
else would one put it?

Regards,
Marti

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2014-11-11 07:52:42 Re: [BUGS] BUG #11661: CASE ELSE is evaluated although condition is true
Previous Message Michael Paquier 2014-11-11 07:14:47 Re: [DOCS] BUG #11661: CASE ELSE is evaluated although condition is true

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Paquier 2014-11-11 07:52:42 Re: [BUGS] BUG #11661: CASE ELSE is evaluated although condition is true
Previous Message Michael Paquier 2014-11-11 07:14:47 Re: [DOCS] BUG #11661: CASE ELSE is evaluated although condition is true