<david@andl.org> writes:
> So the question is: Can a C program link to the Postgres DLL and call SPI
> directly, rather than through a language function?
No, there is no provision for non-server usage of the code. If that's
what you're after you might be happier with SQLite or something similar.
regards, tom lane