"Brian B." <brian-pgsql(at)bbdab(dot)org> writes:
> When setting the "LIBC_R" option, the FreeBSD port essentially sets CFLAGS to
> -D_THREAD_SAFE and LDFLAGS to -pthread. This is probably due to the Python
> procedural handler not being able to link with PostgreSQL until PostgreSQL
> is built pthread-aware.
Hmm, is that a FreeBSD-specific restriction? I've not had any such
trouble on Linux or Mac OS X.
regards, tom lane