Set read_only = TRUE while evaluating input queries for ts_rewrite()

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1c92724985faf15a2cce29e7d95157fc74718d9d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-10-24T03:30:03Z
Releases: 8.3.0
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