Set read_only = TRUE while evaluating input queries for ts_rewrite()
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/tsquery_rewrite.c | modified | +5 −4 |
| src/backend/utils/adt/tsvector_op.c | modified | +5 −4 |