Don Y <pgsql(at)DakotaCom(dot)Net> writes:
> Yeah, I was hoping someone would have built a template for
> new types that trimmed everything down to a single page/file
> instead of having to snoop the source tree. :-(
The various new types in contrib/ are there in part to serve as models.
You could also look on pgfoundry and gborg to see other examples.
regards, tom lane