From: | Chongbing Liu <cliu(at)cs(dot)nmsu(dot)edu> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Chongbing Liu <cliu(at)cs(dot)nmsu(dot)edu> |
Subject: | How can I return a pointer to a use structure from a function |
Date: | 2003-12-19 19:34:34 |
Message-ID: | Pine.LNX.4.58.0312191228060.20781@clink |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thank you very much for your help.
In V1 function calling convention, there are micros
like PG_RETURN_TEXT_P and so on. Most of them are
used to return values of the built-in datatypes.
If I want the XXX_in function (for my own data type)
to return a pointer to a particular structure, what
micro should I use? i.e., how should I organize the
return value?
Thank you and wish you and everybody a merry Christmas.
Chongbing
On Fri, 19 Dec 2003, Tom Lane wrote:
> Chongbing Liu <cliu(at)cs(dot)nmsu(dot)edu> writes:
> > Hello, can you please tell me how to return a NULL value
> > from a function?
>
> You can't unless you use the V1 function calling convention. See the
> programmer's guide.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
From | Date | Subject | |
---|---|---|---|
Next Message | Manfred Spraul | 2003-12-19 20:12:02 | Re: Issue with Linux+Pentium SMP Context Switching |
Previous Message | elein | 2003-12-19 19:32:09 | Re: PostgreSQL speakers needed for OSCON 2004 |