From: Philip Hallstrom <philip@adhesivemedia.com>
To: James Orr <james@lrgmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Aggregate binary AND
Date: Thu, 1 Nov 2001 10:09:58 -0800 (PST)
Message-ID: <20011101100830.S28814-100000@teak.adhesivemedia.com> (raw)
In-Reply-To: <00c901c162f8$f7df42e0$1600000a@lrg.office>
This worked for us in 7.something (don't need it anymore, but it should
still work).
You'll want to create one for INT8, INT2, etc.. if you are going to use
those as well...
CREATE AGGREGATE aggr_bitand ( BASETYPE = INT4, SFUNC1 = int4and, STYPE1 =
INT4);
On Thu, 1 Nov 2001, James Orr wrote:
> Hi,
>
> Is there an aggregate binary AND function in postgres? If not, is there a
> way to write your own aggregate functions? Examples?
>
> - James
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
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: philip@adhesivemedia.com, james@lrgmail.com
Subject: Re: Aggregate binary AND
In-Reply-To: <20011101100830.S28814-100000@teak.adhesivemedia.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