Chongbing Liu <[EMAIL PROTECTED]> writes: > 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?
You can just use PG_RETURN_POINTER if you're feeling lazy. PG_RETURN_TEXT_P and other wrappers around PG_RETURN_POINTER exist mainly as a simple form of documentation. If you like that kind of documentation you can define your own GET and RETURN macros for your own datatype (look in fmgr.h for examples). If you don't, don't bother. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])