Adding support for a new procedural language to Postgres 8.3

I’m working on implementing a new procedural language for Postgres. The docs have a section on this. Too bad it turns out to cause compiler errors and generally not work.

So, for the benefit of anyone else who’s interested, here’s what I did to get an utterly barebones one working. It’s hardcoded with support for only one function, but once you have the framework in place, you can put in your interpreter or whatever. I’ll blog about that when I get to it.

C source:

Makefile:

SQL setup and use:

Saturday, May 16th, 2009 Write
blog comments powered by Disqus