Re: pl/pgsql, cursors and C function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tomasz Myrta <jasiek(at)klaster(dot)net>
Cc: Lista dyskusyjna pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: pl/pgsql, cursors and C function
Date: 2003-09-23 17:18:29
Message-ID: 19913.1064337509@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tomasz Myrta <jasiek(at)klaster(dot)net> writes:
> Do you know anything about good source of C functions documentation and
> examples?

Look in the main sources (backend/utils/adt/, mostly) and/or contrib
modules for functions that do something like what you need. The only
difference between a builtin function and a dynamically loaded one is
you have to add the PG_FUNCTION_INFO macro.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Guy Fraser 2003-09-23 20:34:32 Re: selecting duplicate records
Previous Message scott.marlowe 2003-09-23 16:54:45 Re: Using sql statements in file