From: | Will Benton <bentonw(at)stolaf(dot)edu> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | aggregate functions and varchar type |
Date: | 1999-04-11 23:30:58 |
Message-ID: | Pine.LNX.4.04.9904111812390.20971-100000@woggo.dhs.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
I am having trouble with the following aggregate function (in postgres
6.4.2):
create aggregate nlappend (
basetype = varchar,
sfunc1 = nl_strappend,
stype1 = varchar,
initcond1 = ''
);
When I try to define it, I get "parse error at or near varchar".
(nl_strappend is a function of two varchar arguments that returns a
varchar). Defining an aggregate function on other types works fine.
Is it possible to define an aggregate function on the varchar type? If
so, what am I doing wrong?
Please reply via private email; I will summarize replies and followup to
the list.
thanks,
wb
---
Will Benton | "A black eye never reformed a drunkard; a czar never
bentonw(at)stolaf(dot)edu | stopped a free thought" --Charles Ives
From | Date | Subject | |
---|---|---|---|
Next Message | José Soares | 1999-04-12 13:18:40 | Re: [SQL] aggregate functions and varchar type |
Previous Message | Ross J. Reedstrom | 1999-04-09 23:37:53 | Re: [SQL] how to retrieve... |