Re: pl/pgsql, cursors and C function - Mailing list pgsql-sql

From Tom Lane
Subject Re: pl/pgsql, cursors and C function
Date
Msg-id 19913.1064337509@sss.pgh.pa.us
Whole thread Raw
In response to Re: pl/pgsql, cursors and C function  (Tomasz Myrta <jasiek@klaster.net>)
List pgsql-sql
Tomasz Myrta <jasiek@klaster.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


pgsql-sql by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Using sql statements in file
Next
From: Guy Fraser
Date:
Subject: Re: selecting duplicate records