RE: version 1 C-Language Functions documentation and ex ample

From: "Gowey, Geoffrey" <ggowey(at)rxhope(dot)com>
To: "'Joe Conway'" <joseph(dot)conway(at)home(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: RE: version 1 C-Language Functions documentation and ex ample
Date: 2001-08-26 03:05:56
Message-ID: E15F4B031E17D5118B18009027F67927DAC4@SERVER
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I tried this, but it severely lacks in clarity for someone just getting
started in extending pgsql with c. My main gripe really is that while it
shows how to write the functions (and I've already read the .h file for all
the available v1 features) it lacks in explaining what type is needed for
the create function (which is what I'm running squarely into). For example
(in my case): I've written a function using PG_GETARGS_CSTRING so now what
should the param type be for the create function? char? varchar? text? I'm
at the begining phase where it's confusing. I have also tried the contrib
tree, but all the programs in there use version 0 coding and I wish to start
off on the right foot with pgsql by using the latest method. I have tried
searching the archives of the mailing list on finding some explanation about
writing code, but all available information seems to be my usual problem
when looking for info: tons of technical ref, but too little on getting
started to understand the tech ref stuff. Anyone agree? disagree? know of
something that I am not seeing?

Geoff

-----Original Message-----
From: Joe Conway [mailto:joseph(dot)conway(at)home(dot)com]
Sent: Saturday, August 25, 2001 10:56 PM
To: Gowey, Geoffrey; pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] version 1 C-Language Functions documentation and
example

> Anyone know of a good reference or set of examples clearly showing the
usage
> of V1? I have a problem that I've posted on pgsql-general, but this list
> might be more appropriate for.

Start with:
http://www.postgresql.org/idocs/index.php?xfunc-c.html
Then look at the contrib directory in your source tree for more examples
(assuming your source tree is >=7.1).

HTH,
-- Joe

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2001-08-26 05:05:09 Re: Re: [PATCHES] Makefile.PL for Pg.so
Previous Message Joe Conway 2001-08-26 02:56:21 Re: version 1 C-Language Functions documentation and example