Re: backend dies on my aggregate function in 7.1.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: backend dies on my aggregate function in 7.1.2
Дата
Msg-id 26405.998714229@sss.pgh.pa.us
обсуждение исходный текст
Ответ на backend dies on my aggregate function in 7.1.2  (Dirk Lutzebaeck <lutzeb@aeccom.com>)
Список pgsql-general
Dirk Lutzebaeck <lutzeb@aeccom.com> writes:
> *** the aggregate is then created by

> CREATE AGGREGATE maxalphanum (
>    SFUNC1 = maxalphanum_check,
>    BASETYPE = TEXT,
>    STYPE1 = TEXT
> );

You've not specified any initial condition for the aggregate's state
value.  This means the state starts out NULL ... and your transition
function isn't handling that.

You probably want to mark the transition function 'strict', but you
also need to consider what the initial condition should be: what do
you want returned for no input rows?

            regards, tom lane

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

Предыдущее
От: "Rob Arnold"
Дата:
Сообщение: Re: problems transfering databases
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Error reporting when hitting shared memory limits -