pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Dean Gibson (DB Administrator) <postgresql4@ultimeth.com>
To: pgsql-sql@postgresql.org
Subject: Re: Is NULLIF nullable?
Date: Tue, 09 Nov 2004 21:12:43 -0800
Message-ID: <5.1.0.14.2.20041109211131.00a89d00@imaps.mailpen.net> (raw )
In-Reply-To: <5.1.0.14.2.20041109192441.00ae3f68@imaps.mailpen.net >
References: <25393.1095739813@sss.pgh.pa.us >
<5.1.0.14.2.20040920182022.00adf5e8@imaps.mailpen.net >
<5.1.0.14.2.20040920164348.00a99868@imaps.mailpen.net >
<5.1.0.14.2.20040920121606.00a89c68@imaps.mailpen.net >
<414F02FF.8000603@numerixtechnology.de >
<414F02FF.8000603@numerixtechnology.de >
<5.1.0.14.2.20040920121606.00a89c68@imaps.mailpen.net >
<5.1.0.14.2.20040920164348.00a99868@imaps.mailpen.net >
<5.1.0.14.2.20040920182022.00adf5e8@imaps.mailpen.net >
You can ignore my question below, since I just put the field definition
below in an SQL FUNCTION and marked it STRICT.
-- Dean
Dean Gibson (DB Administrator) wrote on 2004-11-09 19:29:
>Recently I asked about why a field from the nullable side of an OUTER JOIN
>was causing the JOIN to be inefficient, and was told that it was because
>that field had a CASE statement as part of its definition, and that CASE
>(and by extension COALESCE) were non-nullable constructs.
>
>Is NULLIF nullable, in that sense?
>
>Reason: I'd like to define a VIEW with a field definition thusly:
>
>'P.O. Box' || NULLIF( po_box, ' '::char ) AS ...
>
>And I would like the field thusly defined to be nullable.
>
>-- Dean
view thread (2+ messages)
Message-ID: <5.1.0.14.2.20041109211131.00a89d00@imaps.mailpen.net>
Permalink: ../5.1.0.14.2.20041109211131.00a89d00@imaps.mailpen.net/
Also on: postgresql.org/message-id/5.1.0.14.2.20041109211131.00a89d00@imaps.mailpen.net
copy link · copy postgr.es
reply 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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgresql4@ultimeth.com
Subject: Re: Is NULLIF nullable?
In-Reply-To: <5.1.0.14.2.20041109211131.00a89d00@imaps.mailpen.net>
* 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