Re: Exception Handling in C-Language Functions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: greg landrum <greg(dot)landrum(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Exception Handling in C-Language Functions?
Date: 2005-05-23 15:54:15
Message-ID: 8336.1116863655@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

greg landrum <greg(dot)landrum(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Patrick.FICHE 2005-05-23 16:05:50 Re: How to recover from : "Cache lookup failed for rela
Previous Message Martijn van Oosterhout 2005-05-23 15:52:17 Re: table synonyms