Set read_only = TRUE while evaluating input queries for ts_rewrite()
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Oct 2007 03:30:03 +0000 (03:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Oct 2007 03:30:03 +0000 (03:30 +0000)
commit8c0500e899b2fae49b45a0c4dc7f65716cd05a37
tree59c3084d8c869a408331dc4a29ea23e75d8812bb
parent82845964949623fb233e1b90d5ecf6373ea0c09c
Set read_only = TRUE while evaluating input queries for ts_rewrite()
and ts_stat(), per my recent suggestion.  Also add a possibly-not-needed-
but-can't-hurt check for NULL SPI_tuptable, before we try to dereference
same.
src/backend/utils/adt/tsquery_rewrite.c
src/backend/utils/adt/tsvector_op.c