]> granicus.if.org Git - postgresql/commit
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)
commit1c92724985faf15a2cce29e7d95157fc74718d9d
treec2fa2f7141d84912c7d1a33ec1ea66f9b02e831e
parent592c88a0d2d9059576ad4f823dcc6e1ffbd1acfc
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