Re: Non-storable data type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Non-storable data type
Date: 2011-03-26 22:35:01
Message-ID: 6846.1301178901@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniele Varrazzo 2011-03-27 00:09:08 Re: Non-storable data type
Previous Message Daniele Varrazzo 2011-03-26 20:46:00 Non-storable data type