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.conway@home.com]
Sent: Saturday, August 25, 2001 10:56 PM
To: Gowey, Geoffrey; pgsql-hackers@postgresql.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