From: | "Toby Chavez" <odnamr(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Custom Base Type in C |
Date: | 2008-05-08 00:14:46 |
Message-ID: | a2987f9e0805071714l7f1906a4ie6781e210214e4d4@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
If I make it pass-by-reference and varlena do I have to worry about TOASTing
and deTOASTing everying in my INPUT and OUTPUT functions?
On Wed, May 7, 2008 at 5:15 PM, Alvaro Herrera <alvherre(at)commandprompt(dot)com>
wrote:
> Toby Chavez escribió:
>
> > My custom type needs to have one biginteger and one text value... pretty
> > straight forward. I guess my first question is if there are any examples
> out
> > there that do something similar. I have looked extensively through the
> > contrib directory and can't find anything very helpful. If not, could
> > someone help me understand what my c struct would look like and what
> values
> > I need for INTERNALLENGTH, ALIGNMENT, STORAGE, etc in the CREATE TYPE
> > command?
>
> Probably what's biting you is that the type needs to be
> pass-by-reference and varlena.
>
> --
> Alvaro Herrera
> http://www.CommandPrompt.com/ <http://www.commandprompt.com/>
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Enke | 2008-05-08 00:35:43 | Re: pg_dumpall: pg_conversion table not saved |
Previous Message | Toby Chavez | 2008-05-08 00:02:29 | Re: Custom Base Type in C |