From: Marti Raudsepp <marti@juffo.org>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: michael@aplaypowered.com, pgsql-bugs@postgresql.org, pgsql-docs <pgsql-docs@postgresql.org>
Subject: Re: [BUGS] BUG #11661: CASE ELSE is evaluated although condition is true
Date: Tue, 11 Nov 2014 09:37:42 +0200
Message-ID: <CABRT9RAnfbAxD2XQOsGDBnMz5Q2_botfBj_Xz3+v_mVSpbKSXw@mail.gmail.com> (raw)
In-Reply-To: <CAB7nPqRWwGchRvtCPNw0eUADiT6FxDoXRs_WVMyToTdnWn9=Mw@mail.gmail.com>
References: <20141013110542.25460.3900@wrigleys.postgresql.org>
<CABRT9RDMWvoAW-NASCvO08AMZqED5N0jytYHPsoeor=O0VdmMg@mail.gmail.com>
<CAB7nPqRWwGchRvtCPNw0eUADiT6FxDoXRs_WVMyToTdnWn9=Mw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
Hi
On Tue, Nov 11, 2014 at 9:14 AM, Michael Paquier
<michael.paquier@gmail.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
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
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-docs@postgresql.org
Cc: marti@juffo.org, michael.paquier@gmail.com
Subject: Re: [BUGS] BUG #11661: CASE ELSE is evaluated although condition is true
In-Reply-To: <CABRT9RAnfbAxD2XQOsGDBnMz5Q2_botfBj_Xz3+v_mVSpbKSXw@mail.gmail.com>
References: <20141013110542.25460.3900@wrigleys.postgresql.org> <CABRT9RDMWvoAW-NASCvO08AMZqED5N0jytYHPsoeor=O0VdmMg@mail.gmail.com> <CAB7nPqRWwGchRvtCPNw0eUADiT6FxDoXRs_WVMyToTdnWn9=Mw@mail.gmail.com> <CABRT9RAnfbAxD2XQOsGDBnMz5Q2_botfBj_Xz3+v_mVSpbKSXw@mail.gmail.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