Lamar Owen <lamar(dot)owen(at)wgcr(dot)org> writes:
> Has anyone here successfully used Fortran functions in PostgreSQL
> using g77 as the compiler?
No ... but g77 is supposed to produce C-compatible object code as long
as the Fortran isn't too oddball. I've called g77 Fortran code from C
myself. (Not sure what you're supposed to do if the Fortran code wants
to pass parameters through unnamed COMMON blocks, or other weirdnesses
:-()
I'd bet you could make it work with at most a thin layer of C wrapper
code. Are you running into any specific problems?
regards, tom lane