Re: syntax issue with custom aggregator

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: syntax issue with custom aggregator
Дата
Msg-id 20050325195603.GA8604@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: syntax issue with custom aggregator  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Fri, Mar 25, 2005 at 02:39:11PM -0500, Tom Lane wrote:
> "Lucas F." <lucasf@vagabond-software.com> writes:
> > CREATE AGGREGATE "property"."pos_avg" ( BASETYPE = "int2",
> > SFUNC = "property"."ag_pos_avg_accum", STYPE = "_int4",
> > FINALFUNC = "property"."ag_pos_avg_final", INITCOND = "'{0,0}'");
>
> Too many quotes ... try INITCOND = '{0,0}'

Also, check the array subscripts in your functions.  By default,
PostgreSQL array subscripts start at 1, not 0.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: syntax issue with custom aggregator
Следующее
От: Ragnar Hafstað
Дата:
Сообщение: Re: sort array optimisation in pl/perl