Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Silly Newbie question



Aaron Spiteri <azzmosphere(at)hotmail(dot)com> writes:
> I wish to create a an aggregate function and have read and re-read the
> 34.10 section of the 8.3 documentation as well as scanned through the
> fmgr header file.  My problem is that I know certain structures are
> created with the idea of retaining information for use in the state
> function but I don't really understand which structures I should be
> looking at and how to initilize them (if needed) in the sfunc.  Any
> pushes in the right direction would be very appreciated, I am using
> the Version 1 calling convention.

Are there any existing aggregates that do something similar to what you
need?  If so, try taking a look at their source code.  The general rule
in writing C code for Postgres is that it's an open-book test ;-) ---
you are expected to look at the code, not only the documentation.

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group