Re: Exception Handling in C-Language Functions? - Mailing list pgsql-general

From Tom Lane
Subject Re: Exception Handling in C-Language Functions?
Date
Msg-id 8336.1116863655@sss.pgh.pa.us
Whole thread Raw
In response to Re: Exception Handling in C-Language Functions?  (greg landrum <greg.landrum@gmail.com>)
List pgsql-general
greg landrum <greg.landrum@gmail.com> writes:
> Tom Lane wrote:
>> text = DatumGetCString(DirectFunctionCall1(varcharout, text_datum));

> This form of dealing with arguments is interesting to learn about. Is
> there any documentation of this stuff or do I need to dive into the source?

The original motivation for this notation is discussed in
src/backend/utils/fmgr/README, and there's some basic docs in the
main SGML documentation.  Beyond that, looking at code that does
something close to what you want has always been the best guide ...

            regards, tom lane

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: table synonyms
Next
From: Patrick.FICHE@AQSACOM.COM
Date:
Subject: Re: How to recover from : "Cache lookup failed for rela