Prevent stack overflow in query-type functions.

Noah Misch <noah@leadboat.com>

Commit: 879877b00bb54ba9dcdef0d218bd36c4e5404d6f
Author: Noah Misch <noah@leadboat.com>
Date: 2015-10-05T14:06:35Z
Releases: 9.1.19
Prevent stack overflow in query-type functions.

The tsquery, ltxtquery and query_int data types have a common ancestor.
Having acquired check_stack_depth() calls independently, each was
missing at least one call.  Back-patch to 9.0 (all supported versions).

Files