Re: Non-storable data type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Non-storable data type
Дата
Msg-id 6846.1301178901@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Non-storable data type  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Ответы Re: Non-storable data type  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список pgsql-general
Daniele Varrazzo <daniele.varrazzo@gmail.com> writes:
> Hello,
> writing an extension library, I have a type only used to perform
> efficient in-place aggregation, but absolutely not to be used as a
> data type into a table (it contains pointers, so it would be a
> guaranteed crash).

> Is there a way to mark the type as non-storable?

Can you avoid making it a type at all?  I think there are existing
examples of aggregates that just declare their state value as INTERNAL.

            regards, tom lane

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

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Non-storable data type
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Non-storable data type