Reydan Cankur <reydan(dot)cankur(at)gmail(dot)com> writes:
> I am trying to run postgresql functions with threads by using OpenMP.
This is pretty much doomed to failure. It's *certainly* doomed to
failure if you just hack up one area of the source code without dealing
with the backend's general lack of support for threading.
regards, tom lane