Archive for May, 2009
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:
Comet for Cappuccino
Comet is a vaguely-defined set of technologies for asynchronously sending data from the server to the client. Cappuccino is a framework for developing apps in Javascript. Once more, we at “Let’s You and Him Fight” are doing science by smushing things together: Cometuccino