Bitwise OR in a group statement - Mailing list pgsql-general

From Greg Gazanian
Subject Bitwise OR in a group statement
Date
Msg-id s4992c91.072@smtpgtwy.ausd.k12.ca.us
Whole thread Raw
Responses Re: Bitwise OR in a group statement  ("Florian G. Pflug" <fgp@phlo.org>)
List pgsql-general
I was wondering if anyone happens to know whether there is an Aggregate function available in Postgres that can do an
ORon a column of the bit varying type. For example I would like to do something as follows: 

bitstring
*--------
1110
0100
1111


SELECT bitwise_or(bitstring) FROM table;

Resulting in:
1111

Any thoughts? Thanks.

- Greg Gazanian
Network Systems Analyst
Technology and Information Services
Arcadia Unified School District


pgsql-general by date:

Previous
From: Giraldo Leon
Date:
Subject: Help from Havana
Next
From: amishsami@gmail.com
Date:
Subject: OLEDB Provider for Postgres