aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-11-12 23:08:37 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-11-12 23:08:37 +0000
commitfdf8d0624a9881e8ff6efcd60e20290291cc4c6c (patch)
treec092166cba479c66b7c8f18588bf37792d98985b /src/backend/access/gist/gist.c
parent249b224bf5d6ff49443c8fea639b757536c329ba (diff)
downloadpostgresql-fdf8d0624a9881e8ff6efcd60e20290291cc4c6c.tar.gz
postgresql-fdf8d0624a9881e8ff6efcd60e20290291cc4c6c.zip
In predtest.c, install a limit on the number of branches we will process in
AND, OR, or equivalent clauses: if there are too many (more than 100) just exit without proving anything. This ensures that we don't spend O(N^2) time trying (and most likely failing) to prove anything about very long IN lists and similar cases. Also, install a couple of CHECK_FOR_INTERRUPTS calls to ensure that a long proof attempt can be interrupted. Per gripe from Sergey Konoplev. Back-patch the whole patch to 8.2 and just the CHECK_FOR_INTERRUPTS addition to 8.1. (The rest of the patch doesn't apply cleanly, and since 8.1 doesn't show the complained-of behavior anyway, it doesn't seem necessary to work hard on it.)
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions