X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id E1749D1B8F3 for ; Tue, 19 Aug 2003 12:44:34 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 84271-05 for ; Tue, 19 Aug 2003 12:44:24 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 19FDCD1B89D for ; Tue, 19 Aug 2003 12:44:24 -0300 (ADT) Received: (qmail 19297 invoked by uid 500); 19 Aug 2003 15:50:07 -0000 Date: Tue, 19 Aug 2003 10:50:07 -0500 From: Bruno Wolff III To: Rado Petrik Cc: PostgreSQL-mailinglist Subject: Re: Query problem Message-ID: <20030819155007.GB18374@wolff.to> Mail-Followup-To: Rado Petrik , PostgreSQL-mailinglist References: <1061298143.14403.37.camel@caj> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1061298143.14403.37.camel@caj> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/221 X-Sequence-Number: 14837 On Tue, Aug 19, 2003 at 15:02:24 +0200, Rado Petrik wrote: > > In programing language output = > > id(1..3) { > $output = ( bit | $output ); > } > > How write query ? . Thanks You probably want to write a custom aggregate function to do this.