- Mailing list pgsql-sql

From TJ O'Donnell
Subject
Date
Msg-id 1168.12.10.164.2.1113569572.squirrel@gnova.com
Whole thread Raw
List pgsql-sql
There some documentation about aggregate functions in the manual, for example:
http://www.postgresql.org/docs/7.4/static/sql-createaggregate.html

Here's a simple agg function that should work for you,
assuming your col types are int4.

CREATE AGGREGATE andsum (sfunc = int4and,basetype = int4,stype = int4
);

TJ




pgsql-sql by date:

Previous
From: "Dinesh Pandey"
Date:
Subject: send mail from Postgres using PLTCLU language.
Next
From: "Dinesh Pandey"
Date:
Subject: Re: send mail from Postgres using PLTCLU language.