pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Josh Berkus <josh@agliodbs.com>
Cc: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: BOOLEAN question
Date: Tue, 29 Oct 2002 23:19:55 +0100 (CET)
Message-ID: <Pine.LNX.4.44.0210291849280.2006-100000@localhost.localdomain> (raw)
In-Reply-To: <200210281729.35967.josh@agliodbs.com>

Josh Berkus writes:

> I wrote a MAX(bool), what are the chances it would get added to the core?   I
> don't see any good reason not to have one.

One reason not to have one is that Boolean values are not naturally
ordered, so a maximum doesn't exist.  (Yes, I know there are comparison
operators defined for boolean, but that doesn't make it right.)

What seems more reasonable is to define conjuntion and disjunction
aggregates, which would mostly do the same thing but their semantics
wouldn't be as controversial.

-- 
Peter Eisentraut   peter_e@gmx.net




view thread (10+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0210291849280.2006-100000@localhost.localdomain>
Permalink:  ../Pine.LNX.4.44.0210291849280.2006-100000@localhost.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0210291849280.2006-100000@localhost.localdomain

 · 

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: peter_e@gmx.net, josh@agliodbs.com, sszabo@megazone23.bigpanda.com
  Subject: Re: BOOLEAN question
  In-Reply-To: <Pine.LNX.4.44.0210291849280.2006-100000@localhost.localdomain>

* 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