differnt behaviour of NULL in an aggregate and with an operator - Mailing list pgsql-general

From Willy-Bas Loos
Subject differnt behaviour of NULL in an aggregate and with an operator
Date
Msg-id 1dd6057e0808120129s6b1d33cdo952ce05d2eb91780@mail.gmail.com
Whole thread Raw
Responses Re: differnt behaviour of NULL in an aggregate and with an operator
List pgsql-general
Hi,

Why is it that
  SELECT 1+null
evaluates to NULL, but
  SELECT sum(foo) FROM (VALUES(1), (NULL)) AS v(foo)
evaluates to 1 ?

WBL

pgsql-general by date:

Previous
From: Dushyanth
Date:
Subject: Re: [Postgresql 8.2.3] autovacuum starting up evenafter disabling ?
Next
From: Craig Ringer
Date:
Subject: Re: differnt behaviour of NULL in an aggregate and with an operator