BTW, something that would be interesting is to figure out what the thread stack size actually is (I assume this is available in the FreeBSD docs) and experiment to find what is the maximum value max_stack_depth can be set to without letting infinite_recurse() dump core.
regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings