pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: BOOLEAN question
Date: Mon, 28 Oct 2002 18:29:35 -0700
Message-ID: <200210281729.35967.josh@agliodbs.com> (raw)
In-Reply-To: <20021028172506.G86039-100000@megazone23.bigpanda.com>
References: <20021028172506.G86039-100000@megazone23.bigpanda.com>


Stephan,

> Well, you might be better off making a max(bool), but a not
> super-efficient version might be:
>  max(case when col then 1 else 0 end)=1

Good, I'm not just brain-dead.   I did figure out another way to do it, but if 
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.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (10+ messages)  latest in thread

Message-ID: <200210281729.35967.josh@agliodbs.com>
Permalink:  ../200210281729.35967.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200210281729.35967.josh@agliodbs.com

 · 

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: josh@agliodbs.com, sszabo@megazone23.bigpanda.com
  Subject: Re: BOOLEAN question
  In-Reply-To: <200210281729.35967.josh@agliodbs.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